Google is committed to advancing racial equity for Black communities. See how.

state property

*<Null safety>*

InterfaceState state

inherited

Gets the current state.

Implementation

InterfaceState get state => _currentState;

state= (InterfaceState newState)
@protected, inherited

Change the state.

Implementation

@protected
set state(InterfaceState newState) {
  if (_currentState == newState) {
    // No change.
    return;
  }
  if (newState.index < _currentState.index) {
    throw FidlStateException(
        "Can't change InterfaceState from $_currentState to $newState.");
  }
  _currentState = newState;
  _streamController.add(newState);
}