ExtendedText.rich constructor
const
ExtendedText.rich(
- InlineSpan textSpan, {
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- TextScaler? textScaler,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
- bool joinZeroWidthSpace = false,
- SpecialTextGestureTapCallback? onSpecialTextTap,
- TextOverflowWidget? overflowWidget,
- SpecialTextSpanBuilder? specialTextSpanBuilder,
- bool canSelectPlaceholderSpan = true,
Creates a text widget with a InlineSpan.
The following subclasses of InlineSpan may be used to build rich text:
- TextSpans define text and children InlineSpans.
- WidgetSpans define embedded inline widgets.
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);