ExtendedSelectableText.rich constructor
const
ExtendedSelectableText.rich(
- TextSpan textSpan, {
- Key? key,
- FocusNode? focusNode,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextScaler? textScaler,
- bool showCursor = false,
- bool autofocus = false,
- @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions,
- int? minLines,
- int? maxLines,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- GestureTapCallback? onTap,
- ScrollPhysics? scrollPhysics,
- String? semanticsLabel,
- TextHeightBehavior? textHeightBehavior,
- TextWidthBasis? textWidthBasis,
- SelectionChangedCallback? onSelectionChanged,
- ExtendedEditableTextContextMenuBuilder? extendedContextMenuBuilder = ExtendedTextField._defaultContextMenuBuilder,
- TextMagnifierConfiguration? magnifierConfiguration,
- 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);