BoundingBox.point constructor
Creates a BoundingBox representing a single point in the coordinate system.
This constructor initializes a bounding box where both the minimum and maximum coordinates are set to the same point, effectively creating a bounding box that covers exactly one point.
Parameters:
x
: The X coordinate of the point. If null, the X bounds remain undefined.y
: The Y coordinate of the point. If null, the Y bounds remain undefined.
Implementation
const BoundingBox.point({double? x, double? y})
: minX = x,
maxX = x,
minY = y,
maxY = y;