SelectableAutoLinkText class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SelectableAutoLinkText
Constructors
- 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})
Properties
- autofocus → bool
-
Whether this text field should focus itself if nothing else is already
focused.
final
- contextMenuBuilder → EditableTextContextMenuBuilder?
-
Builds the text selection toolbar when requested by the user.
final
- cursorColor → Color?
-
final
- cursorHeight → double?
-
How tall the cursor will be.
final
- cursorRadius → Radius?
-
How rounded the corners of the cursor should be.
final
- cursorWidth → double
-
How thick the cursor will be.
final
- dragStartBehavior → DragStartBehavior
-
Determines the way that drag start behavior is handled.
final
- enableInteractiveSelection → bool
-
Whether to enable user interface affordances for changing the
text selection.
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightedLinkStyle → TextStyle?
-
Style of highlighted link text
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- linkStyle → TextStyle?
-
Style of link text
final
- magnifierConfiguration → TextMagnifierConfiguration?
-
final
- maxLines → int?
-
The maximum number of lines to show at one time, wrapping if necessary.
final
- minLines → int?
-
The minimum number of lines to occupy when the content spans fewer lines.
final
- onDebugMatch → OnDebugMatchFunction?
-
For debugging linkRegExp
final
- onLongPress → OnOpenLinkFunction?
-
Called when the user long-press on link.
final
- onLongPressOther → GesturePointCallback?
-
Called when the user long-press on non-link.
final
- onSelectionChanged → SelectionChangedCallback?
-
Called when the user changes the selection of text (including the cursor
location).
final
- onTap → OnOpenLinkFunction?
-
Called when the user taps on link.
final
- onTapOther → GesturePointCallback?
-
Called when the user taps on non-link.
final
- onTransformDisplayLink → OnTransformLinkAttributeFunction?
-
Transform the display of Link
Called when Link is displayed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPhysics → ScrollPhysics?
-
The ScrollPhysics to use when vertically scrolling the input.
final
- selectionControls → TextSelectionControls?
-
Optional delegate for building the text selection handles.
final
- showCursor → bool
-
Whether to show cursor.
final
- strutStyle → StrutStyle?
-
The strut style used for the vertical layout.
final
- style → TextStyle?
-
final
- text → String
-
Text to be auto link
final
- textAlign → TextAlign?
-
How the text should be aligned horizontally.
final
- textDirection → TextDirection?
-
The directionality of the text.
final
- textScaleFactor → double?
-
Deprecated. Will be removed in a future version of Flutter. Use
textScaler
instead.final - textWidthBasis → TextWidthBasis?
-
Defines how to measure the width of the rendered text.
final
- toolbarOptions → ToolbarOptions?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _SelectableAutoLinkTextState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited