onError method

  1. @override
void onError(
  1. Object error,
  2. StackTrace stackTrace
)
override

This method is called when an error occurs when executing the request.

Implementation

@override
void onError(Object error, StackTrace stackTrace) {
  final msg = _messageError(startTime, uri, method, watch.elapsed);
  print("Error request $msg: $stackTrace");
}