get method
Implementation
Future<Response> get({
required String url,
Map<String, String> headers = const {},
dynamic body,
}) async {
try {
final Response response = await _dioClient.get(
url,
options: Options(headers: headers),
data: body,
);
return response;
} on DioException catch (e) {
final Response? response = e.response;
if (response != null) {
return response;
}
rethrow;
}
}