SelectableAutoLinkText constructor
SelectableAutoLinkText(
- String text, {
- Key? key,
- String? linkRegExpPattern,
- OnTransformLinkAttributeFunction? onTransformDisplayLink,
- OnOpenLinkFunction? onTap,
- OnOpenLinkFunction? onLongPress,
- GesturePointCallback? onTapOther,
- GesturePointCallback? onLongPressOther,
- TextStyle? linkStyle,
- TextStyle? highlightedLinkStyle,
- FocusNode? focusNode,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- double? textScaleFactor,
- bool autofocus = false,
- int? minLines,
- int? maxLines,
- TextSelectionControls? selectionControls,
- bool showCursor = false,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- bool enableInteractiveSelection = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions,
- ScrollPhysics? scrollPhysics,
- TextWidthBasis? textWidthBasis,
- SelectionChangedCallback? onSelectionChanged,
- EditableTextContextMenuBuilder? contextMenuBuilder = my.SelectableText.defaultContextMenuBuilder,
- TextMagnifierConfiguration? magnifierConfiguration,
- OnDebugMatchFunction? onDebugMatch,
Implementation
SelectableAutoLinkText(
this.text, {
super.key,
String? linkRegExpPattern,
this.onTransformDisplayLink,
this.onTap,
this.onLongPress,
this.onTapOther,
this.onLongPressOther,
this.linkStyle,
this.highlightedLinkStyle,
this.focusNode,
this.style,
this.strutStyle,
this.textAlign,
this.textDirection,
this.textScaleFactor,
this.autofocus = false,
this.minLines,
this.maxLines,
this.selectionControls,
this.showCursor = false,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.enableInteractiveSelection = true,
this.dragStartBehavior = DragStartBehavior.start,
@Deprecated(
'Use `contextMenuBuilder` instead. '
'This feature was deprecated after v3.3.0-0.5.pre.',
)
this.toolbarOptions,
this.scrollPhysics,
this.textWidthBasis,
this.onSelectionChanged,
this.contextMenuBuilder = my.SelectableText.defaultContextMenuBuilder,
this.magnifierConfiguration,
this.onDebugMatch,
}) : _linkRegExp =
RegExp(linkRegExpPattern ?? AutoLinkUtils.defaultLinkRegExpPattern);