get method

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

Implementation

Future<Response> get(
  String path, {
  Map<String, dynamic>? queryParameters,
  Options? options,
  String? baseUrl,
  CancelToken? cancelToken,
  ProgressCallback? onReceiveProgress,
}) async {
  dio = Dio()..options.baseUrl = baseUrl ?? _baseUrl;
  return dio.get(
    path,
    queryParameters: queryParameters,
    options: options,
    cancelToken: cancelToken,
    onReceiveProgress: onReceiveProgress,
  );
}