jsonToRect function

Rect jsonToRect(
  1. Map<String, dynamic> data
)

Implementation

Rect jsonToRect(Map<String, dynamic> data) {
  return Rect.fromLTRB(
    data['left'] as double,
    data['top'] as double,
    data['right'] as double,
    data['bottom'] as double,
  );
}