getCell method

  1. @override
Cell? getCell(
  1. int x,
  2. int y
)
override

Gets the cell at (x, y). Returns null if coordinates are out of bounds.

Implementation

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