BMFMapRect.fromMap constructor

BMFMapRect.fromMap(
  1. Map map
)

map => BMFMapRect

Implementation

BMFMapRect.fromMap(Map map)
    : assert(map != null,
'Construct a BMFMapRect,The parameter map cannot be null'),
      assert(map.containsKey('origin'),
      'Construct a BMFMapRect,The parameter origin cannot be null'),
      assert(map.containsKey('size'),
      'Construct a BMFMapRect,The parameter size cannot be null') {
  origin = BMFPoint.fromMap(map['origin']);
  size = BMFSize.fromMap(map['size']);
}