withInternetError method

Response<T> withInternetError(
  1. String message
)

Sets the response as having encountered an internet error.

message: Error message. Returns the modified Response object with updated internet error status.

Implementation

Response<T> withInternetError(String message) {
  withException(message, status: Status.networkError);
  _internetError = true;
  return this;
}