toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "backgroundColor": backgroundColor?.toHex(),
    "baselineOffset": baselineOffset,
    "expansion": expansion,
    "foregroundColor": foregroundColor?.toHex(),
    "kern": kern,
    "ligature": ligature,
    "obliqueness": obliqueness,
    "strikethroughColor": strikethroughColor?.toHex(),
    "strikethroughStyle": strikethroughStyle?.toNativeValue(),
    "string": string,
    "strokeColor": strokeColor?.toHex(),
    "strokeWidth": strokeWidth,
    "textEffect": textEffect?.toNativeValue(),
    "underlineColor": underlineColor?.toHex(),
    "underlineStyle": underlineStyle?.toNativeValue(),
  };
}