SelectableAutoLinkText constructor

SelectableAutoLinkText(
  1. String text, {
  2. Key? key,
  3. String? linkRegExpPattern,
  4. OnTransformLinkAttributeFunction? onTransformDisplayLink,
  5. OnOpenLinkFunction? onTap,
  6. OnOpenLinkFunction? onLongPress,
  7. GesturePointCallback? onTapOther,
  8. GesturePointCallback? onLongPressOther,
  9. TextStyle? linkStyle,
  10. TextStyle? highlightedLinkStyle,
  11. FocusNode? focusNode,
  12. TextStyle? style,
  13. StrutStyle? strutStyle,
  14. TextAlign? textAlign,
  15. TextDirection? textDirection,
  16. double? textScaleFactor,
  17. bool autofocus = false,
  18. int? minLines,
  19. int? maxLines,
  20. TextSelectionControls? selectionControls,
  21. bool showCursor = false,
  22. double cursorWidth = 2.0,
  23. double? cursorHeight,
  24. Radius? cursorRadius,
  25. Color? cursorColor,
  26. bool enableInteractiveSelection = true,
  27. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  28. @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions,
  29. ScrollPhysics? scrollPhysics,
  30. TextWidthBasis? textWidthBasis,
  31. SelectionChangedCallback? onSelectionChanged,
  32. EditableTextContextMenuBuilder? contextMenuBuilder = my.SelectableText.defaultContextMenuBuilder,
  33. TextMagnifierConfiguration? magnifierConfiguration,
  34. 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);