get method

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

Wrap GET method from Dio

Implementation

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