ExtendedText.rich constructor

const ExtendedText.rich(
  1. InlineSpan textSpan, {
  2. Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool? softWrap,
  9. TextOverflow? overflow,
  10. TextScaler? textScaler,
  11. int? maxLines,
  12. String? semanticsLabel,
  13. TextWidthBasis? textWidthBasis,
  14. TextHeightBehavior? textHeightBehavior,
  15. Color? selectionColor,
  16. bool joinZeroWidthSpace = false,
  17. SpecialTextGestureTapCallback? onSpecialTextTap,
  18. TextOverflowWidget? overflowWidget,
  19. SpecialTextSpanBuilder? specialTextSpanBuilder,
  20. bool canSelectPlaceholderSpan = true,
})

Creates a text widget with a InlineSpan.

The following subclasses of InlineSpan may be used to build rich text:

The textSpan parameter must not be null.

See RichText which provides a lower-level way to draw text.

Implementation

const ExtendedText.rich(
  InlineSpan textSpan, {
  super.key,
  super.style,
  super.strutStyle,
  super.textAlign,
  super.textDirection,
  super.locale,
  super.softWrap,
  super.overflow,
  super.textScaler,
  super.maxLines,
  super.semanticsLabel,
  super.textWidthBasis,
  super.textHeightBehavior,
  super.selectionColor,
  this.joinZeroWidthSpace = false,
  this.onSpecialTextTap,
  this.overflowWidget,
  this.specialTextSpanBuilder,
  this.canSelectPlaceholderSpan = true,
}) : super.rich(textSpan);