completeError method
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));
});
}