withLoaded method

Response<T> withLoaded(
  1. bool loaded
)

Sets the loading status of the response.

loaded: Indicates if the response is loaded. Returns the modified Response object with updated loading status.

Implementation

Response<T> withLoaded(bool loaded) {
  _loading = !loaded;
  return this;
}