toggleState method

dynamic toggleState(
  1. UIBoardState? state
)

Implementation

toggleState(UIBoardState? state) {
  if (this.state == state) return;
  this.state = state;
  onStateToggled();
}