BMFSize.fromMap constructor

BMFSize.fromMap(
  1. Map map
)

map => BMFSize

Implementation

BMFSize.fromMap(Map map)
    : assert(map != null,
'Construct a BMFSize,The parameter map cannot be null'),
      assert(map.containsKey('width'),
      'Construct a BMFSize,The parameter width cannot be null'),
      assert(map.containsKey('height'),
      'Construct a BMFSize,The parameter height cannot be null') {
  width = map['width'] as double;
  height = map['height'] as double;
}