setPlayerMode method Null safety

dynamic setPlayerMode(
  1. PlayerMode mode
)

Implementation

setPlayerMode(PlayerMode mode) {
  _chessboard.playerMode = mode;
}