requestUri<T> method Null safety

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

Make http request with options.

uri The uri. data The request data options The request options.

Implementation

@override
Future<Response<T>> requestUri<T>(
  Uri uri, {
  data,
  CancelToken? cancelToken,
  Options? options,
  ProgressCallback? onSendProgress,
  ProgressCallback? onReceiveProgress,
}) {
  return request(
    uri.toString(),
    data: data,
    cancelToken: cancelToken,
    options: options,
    onSendProgress: onSendProgress,
    onReceiveProgress: onReceiveProgress,
  );
}