ExtendedText constructor
const
ExtendedText(
- String data, {
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- SpecialTextSpanBuilder? specialTextSpanBuilder,
- SpecialTextGestureTapCallback? onSpecialTextTap,
- bool selectionEnabled = false,
- GestureTapCallback? onTap,
- Color? selectionColor,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- TextSelectionControls? selectionControls,
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- TextOverflowWidget? overflowWidget,
- bool joinZeroWidthSpace = false,
- ShouldShowSelectionHandlesCallback? shouldShowSelectionHandles,
- TextSelectionGestureDetectorBuilderCallback? textSelectionGestureDetectorBuilder,
Creates a text widget.
If the style argument is null, the text will use the style from the closest enclosing DefaultTextStyle.
Implementation
const ExtendedText(
String this.data, {
Key? key,
this.style,
this.strutStyle,
this.textAlign,
this.textDirection,
this.locale,
this.softWrap,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
this.textWidthBasis,
this.textHeightBehavior,
this.specialTextSpanBuilder,
this.onSpecialTextTap,
this.selectionEnabled = false,
this.onTap,
this.selectionColor,
this.dragStartBehavior = DragStartBehavior.start,
this.selectionControls,
this.selectionHeightStyle = ui.BoxHeightStyle.tight,
this.selectionWidthStyle = ui.BoxWidthStyle.tight,
this.overflowWidget,
this.joinZeroWidthSpace = false,
this.shouldShowSelectionHandles,
this.textSelectionGestureDetectorBuilder,
}) : textSpan = null,
// assert(!(betterLineBreakingAndOverflowStyle && selectionEnabled),
// 'join zero width space into text, the word will not be a word, the [TextPainter] won\'t work any more.'),
super(key: key);