onError method
Called when an exception was occurred during the request.
Implementation
@override
void onError(DioError err, ErrorInterceptorHandler handler) {
DebuggerInterceptorHelper()
.debugData
.value[err.requestOptions.hashCode]
?.error = err;
DebuggerInterceptorHelper()
.debugData
.value[err.requestOptions.hashCode]
?.responseTime = DateTime.now();
DebuggerInterceptorHelper().showDebugIcon();
super.onError(err, handler);
}