onResponse method
Called when the response is about to be resolved.
Implementation
@override
void onResponse(Response response, ResponseInterceptorHandler handler) {
if (showResponse &&
response.requestOptions.headers[HttpService.showLog] != false) {
try {
_logOnResponse(response);
} catch (e) {
logPrint('PrettyDioLogger: $e');
}
}
super.onResponse(response, handler);
}