postUri<T> method Null safety

  1. @override
Future<Response<T>> postUri<T>(
  1. Uri uri,
  2. {dynamic data,
  3. Options? options,
  4. CancelToken? cancelToken,
  5. ProgressCallback? onSendProgress,
  6. ProgressCallback? onReceiveProgress}
)
override

Handy method to make http POST request, which is a alias of BaseDio.requestOptions.

Implementation

@override
Future<Response<T>> postUri<T>(
  Uri uri, {
  data,
  Options? options,
  CancelToken? cancelToken,
  ProgressCallback? onSendProgress,
  ProgressCallback? onReceiveProgress,
}) {
  return requestUri<T>(
    uri,
    data: data,
    options: checkOptions('POST', options),
    cancelToken: cancelToken,
    onSendProgress: onSendProgress,
    onReceiveProgress: onReceiveProgress,
  );
}