withTimeout method
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;
}