setCell method

  1. @override
void setCell(
  1. int x,
  2. int y,
  3. Cell cell
)
override

Sets the cell at (x, y) to cell. Does nothing if coordinates are out of bounds.

Implementation

@override
void setCell(int x, int y, Cell cell) {
  if (x < 0 || x >= bounds.width || y < 0 || y >= bounds.height) return;
  parent.setCell(bounds.x + x, bounds.y + y, cell);
}