buildBoard method Null safety

void buildBoard()

build the board according to the logic state

Implementation

void buildBoard() {
  for (final square in _chessboard.squares) {
    Piece? newState = _logic.get(square.value.squareName);
    if (newState != null) {
      updateSquare(square.value.squareName);
    }
  }
}