toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'text': text,
    'fontSize': fontSize.value,
    'bold': bold,
    'underline': underline,
    'wordwrap': wordwrap,
    'lineHeight': lineHeight,
    'letterSpacing': letterSpacing,
    'marginLeft': marginLeft,
    'align': algin.value,
  };
}