cellAt method

Cell cellAt(
  1. int x,
  2. int y
)

The cell at (x,y), or Cell.blank when out of bounds.

Implementation

Cell cellAt(int x, int y) {
  if (x < 0 || x >= width || y < 0 || y >= height) return Cell.blank;
  return _cells[_index(x, y)];
}