@@ -73,12 +73,12 @@ final class NetworkRequest {
7373 ///
7474 /// This automatically initializes a new [Client] and closes that client once
7575 /// the request is complete.
76- FutureOr <ApiResponse > get (
76+ Future <ApiResponse > get (
7777 Uri url, {
7878 Map <String , String >? headers,
7979 Map <String , dynamic >? params,
8080 Duration ? timeout,
81- }) {
81+ }) async {
8282 return TryCatcher .resolve (
8383 () async {
8484 final response = await _httpClient
@@ -112,13 +112,13 @@ final class NetworkRequest {
112112 ///
113113 /// This automatically initializes a new [Client] and closes that client once
114114 /// the request is complete.
115- FutureOr <ApiResponse > post (
115+ Future <ApiResponse > post (
116116 Uri url, {
117117 Map <String , String >? headers,
118118 Map <String , dynamic >? params,
119119 Object ? body,
120120 Duration ? timeout,
121- }) {
121+ }) async {
122122 return TryCatcher .resolve (
123123 () async {
124124 final response = await _httpClient
@@ -153,13 +153,13 @@ final class NetworkRequest {
153153 ///
154154 /// This automatically initializes a new [Client] and closes that client once
155155 /// the request is complete.
156- FutureOr <ApiResponse > put (
156+ Future <ApiResponse > put (
157157 Uri url, {
158158 Map <String , String >? headers,
159159 Map <String , dynamic >? params,
160160 Object ? body,
161161 Duration ? timeout,
162- }) {
162+ }) async {
163163 return TryCatcher .resolve (
164164 () async {
165165 final response = await _httpClient
@@ -194,13 +194,13 @@ final class NetworkRequest {
194194 ///
195195 /// This automatically initializes a new [Client] and closes that client once
196196 /// the request is complete.
197- FutureOr <ApiResponse > patch (
197+ Future <ApiResponse > patch (
198198 Uri url, {
199199 Map <String , String >? headers,
200200 Map <String , dynamic >? params,
201201 Object ? body,
202202 Duration ? timeout,
203- }) {
203+ }) async {
204204 return TryCatcher .resolve (
205205 () async {
206206 final response = await _httpClient
@@ -234,13 +234,13 @@ final class NetworkRequest {
234234 ///
235235 /// This automatically initializes a new [Client] and closes that client once
236236 /// the request is complete.
237- FutureOr <ApiResponse > delete (
237+ Future <ApiResponse > delete (
238238 Uri url, {
239239 Map <String , String >? headers,
240240 Map <String , dynamic >? params,
241241 Object ? body,
242242 Duration ? timeout,
243- }) {
243+ }) async {
244244 return TryCatcher .resolve (
245245 () async {
246246 final response = await _httpClient
@@ -272,7 +272,7 @@ final class NetworkRequest {
272272 /// > * _@param:_ __[List<UploadFile>] __ files
273273 ///
274274
275- FutureOr <ApiResponse > uploadFile (
275+ Future <ApiResponse > uploadFile (
276276 Uri url, {
277277 required String method,
278278 required List <UploadFile > files,
@@ -324,7 +324,7 @@ final class NetworkRequest {
324324 /// This allows you to create custom logics e.g show upload progress.
325325 ///
326326 /// > * _@param: (required)_ __[BaseRequest] __
327- FutureOr <StreamedResponse > send (BaseRequest request) async {
327+ Future <StreamedResponse > send (BaseRequest request) async {
328328 return TryCatcher .handleNonNull <StreamedResponse >(
329329 () => _httpClient.send (request),
330330 );
0 commit comments