toMap method Null safety
- @override
override
model -> map
Implementation
@override
Map<String, Object?> toMap() {
return Map.from(super.toMap())
..addAll({
'center': this.center.toMap(),
'radius': this.radius,
'width': this.width,
'strokeColor': this.strokeColor?.value.toRadixString(16),
'fillColor': this.fillColor?.value.toRadixString(16),
'lineDashType': this.lineDashType?.index,
'dottedLine': this.dottedLine,
'hollowShapes': this.hollowShapes?.map((e) => e.toMap()).toList(),
});
}