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