lastState property

UiState<T, F> get lastState

Returns the last emitted value by the source stream, otherwise returns UiState.idle()

Implementation

UiState<T, F> get lastState {
  if (!_streamObject.hasValue) return const UiState.idle();
  return _streamObject.value;
}