createRichText static method

  1. @Deprecated('Use RichTextWidget instead')
RichText createRichText({
  1. required List<TextSpan> list,
  2. TextOverflow overflow = TextOverflow.clip,
  3. int? maxLines,
  4. TextAlign textAlign = TextAlign.left,
  5. TextDirection? textDirection,
  6. StrutStyle? strutStyle,
})

Implementation

@Deprecated('Use RichTextWidget instead')
static RichText createRichText({
  required List<TextSpan> list,
  TextOverflow overflow = TextOverflow.clip,
  int? maxLines,
  TextAlign textAlign = TextAlign.left,
  TextDirection? textDirection,
  StrutStyle? strutStyle,
}) {
  return RichText(
    text: TextSpan(children: list),
    overflow: overflow,
    maxLines: maxLines,
    textAlign: textAlign,
    textDirection: textDirection,
    strutStyle: strutStyle,
  );
}