BMFGradientCircle.fromMap constructor Null safety
- Map map
map => BMFGradientCircle
Implementation
BMFGradientCircle.fromMap(Map map)
: assert(map['center'] != null),
assert(map['radius'] != null),
super.fromMap(map) {
radius = map['radius'];
center = BMFCoordinate.fromMap(map['center']);
radiusWeight = map['radiusWeight'];
colorWeight = map['colorWeight'];
width = map['width'];
strokeColor = ColorUtil.hexToColor(map['strokeColor']);
centerColor = ColorUtil.hexToColor(map['centerColor']);
sideColor = ColorUtil.hexToColor(map['sideColor']);
lineDashType = BMFLineDashType.values[map['lineDashType'] as int];
dottedLine = map['dottedLine'];
}