MockResponse.connectionError constructor
MockResponse.connectionError([
- String message = 'Connection reset'
A transport level failure (no HTTP response), e.g. a connection reset.
Implementation
factory MockResponse.connectionError([String message = 'Connection reset']) {
return MockResponse(error: message);
}