EzSelectableText.rich constructor
const
EzSelectableText.rich(
- TextSpan textSpan, {
- Key? key,
- FocusNode? focusNode,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign = TextAlign.center,
- TextDirection? textDirection,
- double? textScaleFactor,
- bool showCursor = false,
- bool autofocus = false,
- int? minLines,
- int? maxLines,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- void onTap()?,
- ScrollPhysics scrollPhysics = const NeverScrollableScrollPhysics(),
- String? semanticsLabel,
- TextHeightBehavior? textHeightBehavior,
- TextWidthBasis? textWidthBasis,
- void onSelectionChanged()?,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- TextMagnifierConfiguration? magnifierConfiguration,
SelectableText.rich wrapper with customized defaults
Implementation
const EzSelectableText.rich(
TextSpan textSpan, {
this.key,
this.focusNode,
this.style,
this.strutStyle,
this.textAlign = TextAlign.center,
this.textDirection,
this.textScaleFactor,
this.showCursor = false,
this.autofocus = false,
this.minLines,
this.maxLines,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.selectionHeightStyle = BoxHeightStyle.tight,
this.selectionWidthStyle = BoxWidthStyle.tight,
this.dragStartBehavior = DragStartBehavior.start,
this.enableInteractiveSelection = true,
this.selectionControls,
this.onTap,
this.scrollPhysics = const NeverScrollableScrollPhysics(),
this.semanticsLabel,
this.textHeightBehavior,
this.textWidthBasis,
this.onSelectionChanged,
this.contextMenuBuilder,
this.magnifierConfiguration,
}) : data = null,
super.rich(
textSpan,
key: key,
focusNode: focusNode,
style: style,
strutStyle: strutStyle,
textAlign: textAlign,
textDirection: textDirection,
textScaleFactor: textScaleFactor,
showCursor: showCursor,
autofocus: autofocus,
minLines: minLines,
maxLines: maxLines,
cursorWidth: cursorWidth,
cursorHeight: cursorHeight,
cursorRadius: cursorRadius,
cursorColor: cursorColor,
selectionHeightStyle: selectionHeightStyle,
dragStartBehavior: dragStartBehavior,
enableInteractiveSelection: enableInteractiveSelection,
selectionControls: selectionControls,
onTap: onTap,
scrollPhysics: scrollPhysics,
semanticsLabel: semanticsLabel,
textHeightBehavior: textHeightBehavior,
textWidthBasis: textWidthBasis,
onSelectionChanged: onSelectionChanged,
magnifierConfiguration: magnifierConfiguration,
);