BMFArcline.withMap constructor
BMFArcline.withMap(- Map map
)
Implementation
BMFArcline.withMap(Map map) {
if (null == map) {
return;
}
List list = map['coordinates'] as List;
super.fromMap(map);
this.coordinates = list
?.map((c) => BMFCoordinate.coordinate().fromMap(c) as BMFCoordinate)
?.toList();
this.width = map['width'];
this.color = ColorUtil.hexToColor(map['color']);
int lineType = map['lineDashType'] as int;
if (null != lineType &&
lineType >= 0 &&
lineType < BMFLineDashType.values.length) {
this.lineDashType = BMFLineDashType.values[lineType];
}
}