getBoundingBox static method

Rect getBoundingBox(
  1. dynamic boundingBoxMap
)

Implementation

static Rect getBoundingBox(dynamic boundingBoxMap) {
  return Rect.fromLTRB(
    (boundingBoxMap['left'] as int).toDouble(),
    (boundingBoxMap['top'] as int).toDouble(),
    (boundingBoxMap['right'] as int).toDouble(),
    (boundingBoxMap['bottom'] as int).toDouble(),
  );
}