BMFArcLine.fromMap constructor
- Map map
map => BMFArcline
Implementation
BMFArcLine.fromMap(Map map)
: assert(map['coordinates'] != null),
super.fromMap(map) {
if (map['coordinates'] != null) {
coordinates = new List<BMFCoordinate>();
map['coordinates'].forEach((v) {
coordinates.add(BMFCoordinate.fromMap(v as Map));
});
}
width = map['width'];
color = ColorUtil.hexToColor(map['color']);
lineDashType = BMFLineDashType.values[map['lineDashType'] as int];
}