toMap method Null safety
- @override
override
model -> map
Implementation
@override
Map<String, Object?> toMap() {
return Map.from(super.toMap())
..addAll({
'coordinates': this.coordinates.map((coord) => coord.toMap()).toList(),
'width': this.width,
'strokeColor': this.strokeColor?.value.toRadixString(16),
'textureImage': this.textureImage,
'lineDashType': this.lineDashType?.index,
'lineDirectionCross180': this.lineDirectionCross180?.index,
});
}