overrideHttpClient property

bool overrideHttpClient
@protected

Determines whether the Dart HttpClient class should be overriden to always return a failure response.

By default, this value is true, so that unit tests will not become flaky due to intermitten network errors. The value may be overriden by a binding intended for use in integration tests that do end to end application testing, including working with real network responses.

Implementation

@protected
bool get overrideHttpClient => true;