ExtendedSelectableText.rich constructor

const ExtendedSelectableText.rich(
  1. TextSpan textSpan, {
  2. Key? key,
  3. FocusNode? focusNode,
  4. TextStyle? style,
  5. StrutStyle? strutStyle,
  6. TextAlign? textAlign,
  7. TextDirection? textDirection,
  8. TextScaler? textScaler,
  9. bool showCursor = false,
  10. bool autofocus = false,
  11. @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions,
  12. int? minLines,
  13. int? maxLines,
  14. double cursorWidth = 2.0,
  15. double? cursorHeight,
  16. Radius? cursorRadius,
  17. Color? cursorColor,
  18. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  19. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  20. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  21. bool enableInteractiveSelection = true,
  22. TextSelectionControls? selectionControls,
  23. GestureTapCallback? onTap,
  24. ScrollPhysics? scrollPhysics,
  25. String? semanticsLabel,
  26. TextHeightBehavior? textHeightBehavior,
  27. TextWidthBasis? textWidthBasis,
  28. SelectionChangedCallback? onSelectionChanged,
  29. ExtendedEditableTextContextMenuBuilder? extendedContextMenuBuilder = ExtendedTextField._defaultContextMenuBuilder,
  30. TextMagnifierConfiguration? magnifierConfiguration,
  31. SpecialTextSpanBuilder? specialTextSpanBuilder,
})

Implementation

const ExtendedSelectableText.rich(
  TextSpan textSpan, {
  super.key,
  super.focusNode,
  super.style,
  super.strutStyle,
  super.textAlign,
  super.textDirection,
  super.textScaler,
  super.showCursor = false,
  super.autofocus = false,
  @Deprecated(
    'Use `contextMenuBuilder` instead. '
    'This feature was deprecated after v3.3.0-0.5.pre.',
  )
  super.toolbarOptions,
  super.minLines,
  super.maxLines,
  super.cursorWidth = 2.0,
  super.cursorHeight,
  super.cursorRadius,
  super.cursorColor,
  super.selectionHeightStyle = ui.BoxHeightStyle.tight,
  super.selectionWidthStyle = ui.BoxWidthStyle.tight,
  super.dragStartBehavior = DragStartBehavior.start,
  super.enableInteractiveSelection = true,
  super.selectionControls,
  super.onTap,
  super.scrollPhysics,
  super.semanticsLabel,
  super.textHeightBehavior,
  super.textWidthBasis,
  super.onSelectionChanged,
  // super.contextMenuBuilder = _defaultContextMenuBuilder,
  this.extendedContextMenuBuilder =
      ExtendedTextField._defaultContextMenuBuilder,
  super.magnifierConfiguration,
  this.specialTextSpanBuilder,
}) : super.rich(textSpan);