parseRect function

Rect? parseRect(
  1. Map<String, dynamic>? map
)

Implementation

Rect? parseRect(Map<String, dynamic>? map) {
  if (map == null) return null;
  double left = map["left"].toDouble();
  double right = map["right"].toDouble();
  double top = map["top"].toDouble();
  double bottom = map["bottom"].toDouble();
  return Rect.fromLTRB(left, top, right, bottom);
}