getx<T> method
Implementation
Future<Response> getx<T>(String path, {Map<String, String>? headers}) async {
try {
var response = await get(
Uri.parse(path),
headers: headers,
);
return Future.value(response);
} on FormatException catch (_) {
throw const FormatException("Unable to process the data");
} catch (e) {
log(e.toString());
rethrow;
}
}