get static method

Future<Response> get(
  1. String path, {
  2. bool showLoading = false,
  3. DioMethod method = DioMethod.get,
  4. Map<String, dynamic>? params,
  5. CancelToken? cancelToken,
  6. Options? options,
})

http GET request return Future

Implementation

static Future<Response> get(
  String path, {
  bool showLoading = false,
  DioMethod method = DioMethod.get,
  Map<String, dynamic>? params,
  CancelToken? cancelToken,
  Options? options,
}) {
  return HttpUtils()
      .request(path, showLoading: showLoading, method: method, params: params, options: options, cancelToken: cancelToken);
}