serializeAttrText method
Map<String, dynamic>
serializeAttrText(
- AttributedText attributedText, {
- AttributionSerializeBuilder? serializeBuilder,
Implementation
Map<String, dynamic> serializeAttrText(AttributedText attributedText,
{AttributionSerializeBuilder? serializeBuilder}) {
final text = attributedText.text;
final spans = serializeSpans(
attributedText.spans,
serializeBuilder: serializeBuilder,
);
return {keyText: text, keySpans: spans};
}