get<T> method
Implementation
Future<Response<T>> get<T>(
String action, {
Map<String, dynamic>? params,
bool protected = false,
void Function(int, int)? onReceiveProgress,
bool verbose = false,
}) async {
try {
final Response<T> response = await client.get<T>(
action,
queryParameters: params,
options: getOptions(protected: protected),
onReceiveProgress: onReceiveProgress,
);
_verboseResponse(response, verbose);
return response;
} on DioException catch (error) {
_verboseResponse(error.response, verbose);
rethrow;
} catch (_) {
rethrow;
}
}