push method Null safety

void push(
  1. Move move
)

Implementation

void push(Move move) {
  history.add(State(move, ColorMap.clone(kings), turn,
      ColorMap.clone(castling), epSquare, halfMoves, moveNumber));
}