BMFPoint.fromMap constructor
- Map map
map => BMFPoint
Implementation
BMFPoint.fromMap(Map map)
: assert(map != null,
'Construct a BMFPoint,The parameter map cannot be null'),
assert(map.containsKey('x'),
'Construct a BMFPoint,The parameter x cannot be null'),
assert(map.containsKey('y'),
'Construct a BMFPoint,The parameter y cannot be null') {
x = map['x'] as double;
y = map['y'] as double;
}