status property
GetStatus<T>
get
status
Gets the current status of the state.
Implementation
GetStatus<T> get status {
reportRead();
return _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 case SuccessStatus<T> success) {
_value = success.data;
}
refresh();
}