withTimeout method

Response<T> withTimeout(
  1. bool timeout
)

Sets the timeout status of the response.

timeout: Indicates if there was a timeout. Returns the modified Response object with updated timeout status.

Implementation

Response<T> withTimeout(bool timeout) {
  _timeout = timeout;
  _loading = false;
  return this;
}