get method

Future<Response> get(
  1. String path, {
  2. Map<String, dynamic>? queryParams,
})

Implementation

Future<Response> get(String path, {Map<String, dynamic>? queryParams}) async {
  try {
    final response = await _dio.get(path, queryParameters: queryParams);
    return response;
  } on DioException catch (e) {
    throw _handleError(e);
  }
}