toMap method
dynamic
toMap()
Convert the text style to DynamicMap
.
Implementation
DynamicMap toMap() {
if (this == null) {
return <String, dynamic>{};
}
return <String, dynamic>{
if (this!.fontSize != null) "size": this!.fontSize,
if (this!.color != null) "color": this!.color!.value,
if (this!.fontWeight != null) "weight": this!.fontWeight!.index,
if (this!.fontStyle != null) "style": this!.fontStyle!.index,
if (this!.backgroundColor != null)
"backgroundColor": this!.backgroundColor!.value,
};
}