toRichText method

RichText toRichText({
  1. TextStyle? style,
  2. List<InlineSpan>? children,
})

Implementation

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