toRichText method
Implementation
RichText toRichText({TextStyle? style, List<InlineSpan>? children}) =>
RichText(
text: TextSpan(
text: this ?? '',
style: style ?? const TextStyle(color: Colors.black),
children: children,
),
);