BoundingBox constructor

const BoundingBox({
  1. double? minX,
  2. double? maxX,
  3. double? minY,
  4. double? maxY,
})

Constructs a BoundingBox with specified minimum and maximum coordinates.

This constructor initializes a bounding box with fixed bounds determined by the provided minimum and maximum coordinates for both the X and Y axes. If any of the parameters are set to null, the corresponding bound will be considered flexible or unbounded.

Parameters:

  • minX: The minimum X coordinate of the bounding box. Can be null for a flexible bounding box.
  • maxX: The maximum X coordinate of the bounding box. Can be null for a flexible bounding box.
  • minY: The minimum Y coordinate of the bounding box. Can be null for a flexible bounding box.
  • maxY: The maximum Y coordinate of the bounding box. Can be null for a flexible bounding box.

Implementation

const BoundingBox({
  this.minX,
  this.maxX,
  this.minY,
  this.maxY,
});