BMFGround.fromMap constructor
- Map map
map => BMFGround
Implementation
BMFGround.fromMap(Map map)
: assert(map['image'] != null),
super.fromMap(map) {
image = map['image'];
width = map['width'];
height = map['height'];
anchorX = map['anchorX'];
anchorY = map['anchorY'];
zoomLevel = map['zoomLevel'];
if (map['position'] != null) {
position = BMFCoordinate.fromMap(map['position']);
}
if (map['bounds'] != null) {
bounds = BMFCoordinateBounds.fromMap(map['bounds']);
}
transparency = map['transparency'];
clickable = map['clickable'];
}