createRichText static method
- @Deprecated('Use RichTextWidget instead')
- required List<
TextSpan> list, - TextOverflow overflow = TextOverflow.clip,
- int? maxLines,
- TextAlign textAlign = TextAlign.left,
- TextDirection? textDirection,
- 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,
);
}