state property

RoomStates get state

Implementation

RoomStates get state => _state;
set state (RoomStates newState)

Set the state of the room

Implementation

set state(RoomStates newState) {
  if (_state != newState) {
    _state = newState;
  }
}