BidiText constructor

const BidiText(
  1. String data, {
  2. Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign,
  6. Locale? locale,
  7. bool? softWrap,
  8. TextOverflow? overflow,
  9. TextScaler? textScaler,
  10. int? maxLines,
  11. String? semanticsLabel,
  12. TextWidthBasis? textWidthBasis,
  13. TextHeightBehavior? textHeightBehavior,
  14. Color? selectionColor,
  15. 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;