toRichText method
Widget
toRichText({
- TextAlign textAlign = TextAlign.start,
- TextOverflow overflow = TextOverflow.clip,
- int? maxLines = 10,
- bool softWrap = true,
Creates a rich text widget with the specified content.
Implementation
Widget toRichText({
TextAlign textAlign = TextAlign.start,
TextOverflow overflow = TextOverflow.clip,
int? maxLines = 10,
bool softWrap = true,
}) {
return RichText(
key: AFFunctionalTheme.keyForWIDStatic(wid),
textAlign: textAlign,
overflow: overflow,
maxLines: maxLines,
softWrap: softWrap,
text: TextSpan(
children: spans
));
}