toRichText method

Widget toRichText({
  1. TextAlign textAlign = TextAlign.start,
  2. TextOverflow overflow = TextOverflow.clip,
  3. int? maxLines = 10,
  4. 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

  ));
}