StringToRichText extension

on

Properties

plainTextLength int

Available on String, provided by the StringToRichText extension

Gets the plain text length (without formatting markers)
no setter

Methods

getFormattingStats() Map<String, int>

Available on String, provided by the StringToRichText extension

Gets formatting statistics for the text
hasFormatting() bool

Available on String, provided by the StringToRichText extension

Checks if text contains any formatting syntax
normalizeText() String

Available on String, provided by the StringToRichText extension

Normalizes text by removing all formatting syntax
normalizeTextRecursive() String

Available on String, provided by the StringToRichText extension

Normalizes text recursively (handles nested formatting)
toMixedRichText({TextStyle? baseStyle, TextStyle? boldStyle, TextStyle? italicStyle, TextStyle? underlineStyle, TextStyle? strikethroughStyle, TextStyle? codeStyle}) RichText

Available on String, provided by the StringToRichText extension

Converts mixed markdown/WhatsApp-style text to RichText
toRichText({TextStyle? baseStyle, TextStyle? boldStyle, TextStyle? italicStyle, TextStyle? underlineStyle, TextStyle? strikethroughStyle, TextStyle? codeStyle}) RichText

Available on String, provided by the StringToRichText extension

Converts text with mixed markdown/WhatsApp syntax to RichText
toWhatsAppRichText({TextStyle? baseStyle, TextStyle? boldStyle, TextStyle? italicStyle, TextStyle? strikethroughStyle, TextStyle? codeStyle}) RichText

Available on String, provided by the StringToRichText extension

Converts WhatsApp-style text to RichText (kept for backward compatibility)