BidiText constructor
const
BidiText(
- String data, {
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- TextScaler? textScaler,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
- int? sampleLength = 50,
Creates a BidiText widget with a plain string.
Direction is detected from data up to sampleLength characters.
Implementation
const BidiText(
String this.data, {
super.key,
this.style,
this.strutStyle,
this.textAlign,
this.locale,
this.softWrap,
this.overflow,
this.textScaler,
this.maxLines,
this.semanticsLabel,
this.textWidthBasis,
this.textHeightBehavior,
this.selectionColor,
this.sampleLength = 50,
}) : textSpan = null;