withIgnore method

Response<T> withIgnore(
  1. T? value, {
  2. String? message,
  3. Status? status,
})

Sets an ignored value and associated properties with the response.

value: The ignored value. message: Additional message. status: Status of the response. Returns the modified Response object with updated ignored data.

Implementation

Response<T> withIgnore(T? value, {String? message, Status? status}) {
  _ignores = _ignores.setAt(0, value);
  _status = status;
  _successful = false;
  _message = message;
  _loading = false;
  return this;
}