getByCoords method

MatrixCell? getByCoords(
  1. int x,
  2. int y
)

Implementation

MatrixCell? getByCoords(int x, int y) {
  if (x >= this.width() || y >= this.height()) {
    return null;
  }
  return this.s[y][x];
}