toRichText method

RichText toRichText({
  1. TextStyle? baseStyle,
  2. TextStyle? boldStyle,
  3. TextStyle? italicStyle,
  4. TextStyle? underlineStyle,
  5. TextStyle? strikethroughStyle,
  6. TextStyle? codeStyle,
})

Converts text with mixed markdown/WhatsApp syntax to RichText

Implementation

RichText toRichText({
  TextStyle? baseStyle,
  TextStyle? boldStyle,
  TextStyle? italicStyle,
  TextStyle? underlineStyle,
  TextStyle? strikethroughStyle,
  TextStyle? codeStyle,
}) {
  return DanUITextConverter.convertToRichText(
    this,
    baseStyle: baseStyle,
    boldStyle: boldStyle,
    italicStyle: italicStyle,
    underlineStyle: underlineStyle,
    strikethroughStyle: strikethroughStyle,
    codeStyle: codeStyle,
  );
}