at method

Cell? at(
  1. int x
)

Returns the cell at x, or null if out of bounds.

Implementation

Cell? at(int x) => (x < 0 || x >= _cells.length) ? null : _cells[x];