get<T> method

  1. @override
Future<Response<T>> get<T>(
  1. String path, {
  2. Map<String, dynamic>? queryParameters,
  3. Object? data,
  4. Options? options,
  5. CancelToken? cancelToken,
  6. ProgressCallback? onReceiveProgress,
})
override

Convenience method to make an HTTP GET request.

Implementation

@override
Future<Response<T>> get<T>(
  String path, {
  Map<String, dynamic>? queryParameters,
  Object? data,
  Options? options,
  CancelToken? cancelToken,
  ProgressCallback? onReceiveProgress,
}) {
  return request<T>(
    path,
    data: data,
    queryParameters: queryParameters,
    options: checkOptions('GET', options),
    onReceiveProgress: onReceiveProgress,
    cancelToken: cancelToken,
  );
}