state property

InterfaceState state

inherited

Implementation

InterfaceState get state => _currentState;

state= (InterfaceState newState)
inherited

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);
}