get method
Implementation
Future<dynamic> get(url) async {
try {
Response response = await _dio.get(url);
return response.data;
} catch (error, stacktrace) {
_printLog("$error stackTrace: $stacktrace");
return null;
}
}
Future<dynamic> get(url) async {
try {
Response response = await _dio.get(url);
return response.data;
} catch (error, stacktrace) {
_printLog("$error stackTrace: $stacktrace");
return null;
}
}