status property
GetStatus<T>
get
status
Implementation
GetStatus<T> get status {
reportRead();
return _status ??= _status = GetStatus.loading();
}
set
status
(GetStatus<T> newStatus)
Implementation
set status(GetStatus<T> newStatus) {
if (newStatus == status) return;
_status = newStatus;
if (newStatus is SuccessStatus<T>) {
_value = newStatus.data;
}
refresh();
}