post method

Future<Response> post(
  1. String url, {
  2. dynamic data,
  3. Map<String, dynamic>? queryParameters,
  4. Options? options,
  5. CancelToken? cancelToken,
  6. ProgressCallback? onSendProgress,
  7. ProgressCallback? onReceiveProgress,
})

Wrap POST method from Dio

Implementation

Future<Response> post(
  String url, {
  dynamic data,
  Map<String, dynamic>? queryParameters,
  Options? options,
  CancelToken? cancelToken,
  ProgressCallback? onSendProgress,
  ProgressCallback? onReceiveProgress,
}) {
  return dio.post(
    url,
    data: data,
    queryParameters: queryParameters,
    cancelToken: cancelToken,
    onReceiveProgress: onReceiveProgress,
    onSendProgress: onSendProgress,
    options: options,
  );
}