completeError method

  1. @override
void completeError({
  1. Object? error,
  2. BaseResponse? response,
})
inherited

Implementation

@override
void completeError({Object? error, BaseResponse? response}) {
  // Defer the "fetching" of the response until the request has been sent.
  onSent.then((_) {
    _response
        .completeError(RequestException(method, uri, this, response, error));
  });
}