toggleMovesEnabled method Null safety

dynamic toggleMovesEnabled()

Implementation

toggleMovesEnabled() {
  _chessboard.enableMoves = !_chessboard.enableMoves;
}