at method

Piece? at(
  1. int row,
  2. int col
)

Returns piece at position (row, col) or null if square is empty.

Implementation

Piece? at(int row, int col) => _position[row][col];