getUri<T> method Null safety

  1. @override
Future<Response<T>> getUri<T>(
  1. Uri uri,
  2. {Options? options,
  3. CancelToken? cancelToken,
  4. ProgressCallback? onReceiveProgress}
)
override

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

Implementation

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