PointNode nodeFromPoint(point)

Returns the PointNode of this Grid found at point.

Throws ArgumentError if there is no Node located at point.

Source

PointNode nodeFromPoint(Point point) {
  if (!this.containsPoint(point)) {
    throw new ArgumentError('This Grid does not contain the point: $point');
  }
  return this._grid[point.y][point.x];
}