boundingBox property

Rect? get boundingBox

Gets the bounding box as a Flutter Rect object. Decodes from the internal JSON string representation.

Implementation

Rect? get boundingBox {
  final bbox = _decodeBbox(bboxJson);
  if (bbox == null || bbox.length != 4) return null;
  return Rect.fromLTWH(bbox[0], bbox[1], bbox[2], bbox[3]);
}