BoundingBox constructor

const BoundingBox({
  1. required Point topLeft,
  2. required Point topRight,
  3. required Point bottomRight,
  4. required Point bottomLeft,
})

Creates a bounding box with four corner points.

Points should be in order: top-left, top-right, bottom-right, bottom-left.

Implementation

const BoundingBox({
  required this.topLeft,
  required this.topRight,
  required this.bottomRight,
  required this.bottomLeft,
});