status property

GetStatus<T> get status

Gets the current status of the state.

Implementation

GetStatus<T> get status {
  reportRead();
  return _status ??= _status = GetStatus<T>.loading();
}
set status (GetStatus<T> newStatus)

Sets the status of the state.

Implementation

set status(GetStatus<T> newStatus) {
  if (newStatus == status) {
    return;
  }
  _status = newStatus;
  if (newStatus is SuccessStatus<T>) {
    _value = newStatus.data;
  }
  refresh();
}