withNullable method

Response<T> withNullable(
  1. bool nullable
)

Sets the nullable status of the response.

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

Implementation

Response<T> withNullable(bool nullable) {
  _nullable = nullable;
  _loading = false;
  return this;
}