BidiSelectableText constructor

const BidiSelectableText(
  1. String data, {
  2. Key? key,
  3. FocusNode? focusNode,
  4. TextStyle? style,
  5. StrutStyle? strutStyle,
  6. TextAlign? textAlign,
  7. TextScaler? textScaler,
  8. bool showCursor = false,
  9. bool autofocus = false,
  10. int? minLines,
  11. int? maxLines,
  12. double cursorWidth = 2.0,
  13. double? cursorHeight,
  14. Radius? cursorRadius,
  15. Color? cursorColor,
  16. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  17. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  18. bool enableInteractiveSelection = true,
  19. TextSelectionControls? selectionControls,
  20. GestureTapCallback? onTap,
  21. ScrollPhysics? scrollPhysics,
  22. String? semanticsLabel,
  23. TextHeightBehavior? textHeightBehavior,
  24. TextWidthBasis? textWidthBasis,
  25. SelectionChangedCallback? onSelectionChanged,
  26. EditableTextContextMenuBuilder? contextMenuBuilder,
  27. TextMagnifierConfiguration? magnifierConfiguration,
  28. int? sampleLength = 50,
})

Creates a BidiSelectableText widget with a plain string.

Direction is detected from data up to sampleLength characters.

Implementation

const BidiSelectableText(
  String this.data, {
  super.key,
  this.focusNode,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textScaler,
  this.showCursor = false,
  this.autofocus = false,
  this.minLines,
  this.maxLines,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.onTap,
  this.scrollPhysics,
  this.semanticsLabel,
  this.textHeightBehavior,
  this.textWidthBasis,
  this.onSelectionChanged,
  this.contextMenuBuilder,
  this.magnifierConfiguration,
  this.sampleLength = 50,
}) : textSpan = null;