convertBoundingBox static method

Rect convertBoundingBox(
  1. Map boxMap
)

Converts a {left, top, right, bottom} map to a Rect.

Implementation

static Rect convertBoundingBox(Map<dynamic, dynamic> boxMap) => Rect.fromLTRB(
  safeGetDouble(boxMap, 'left'),
  safeGetDouble(boxMap, 'top'),
  safeGetDouble(boxMap, 'right'),
  safeGetDouble(boxMap, 'bottom'),
);