Last active
November 7, 2022 08:58
-
-
Save sinnoorc/864e7c5930d52cca8ced61145b24f655 to your computer and use it in GitHub Desktop.
Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<Response> post( | |
String url, { | |
data, | |
Map<String, dynamic>? queryParameters, | |
Options? options, | |
CancelToken? cancelToken, | |
ProgressCallback? onSendProgress, | |
ProgressCallback? onReceiveProgress, | |
}) async { | |
try { | |
final Response response = await _dio.post( | |
url, | |
data: data, | |
queryParameters: queryParameters, | |
options: options, | |
cancelToken: cancelToken, | |
onSendProgress: onSendProgress, | |
onReceiveProgress: onReceiveProgress, | |
); | |
return response; | |
} catch (e) { | |
rethrow; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment