done property
An HttpClientResponse
future that will complete once the response is
available.
If an error occurs before the response is available, this future will complete with an error.
Implementation
@override
Future<HttpClientResponse> get done {
return _httpClientRequest.done.then(
(response) =>
_wrapResponse(response, _httpClientRequest, timestamp, traceData),
onError: (dynamic err) {
NewrelicMobile.instance.recordError(err, StackTrace.current);
throw err;
});
}