SelectableLinkify class
Turns URLs into links
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SelectableLinkify
Constructors
-
SelectableLinkify({Key? key, String? text, List<
Linkifier> ? linkifiers = defaultLinkifiers, LinkCallback? onOpen, LinkifyOptions? options = const LinkifyOptions(), TextStyle? style, TextStyle? linkStyle, TextAlign? textAlign, TextDirection? textDirection, int? minLines, int? maxLines, FocusNode? focusNode, dynamic textScaleFactor = 1.0, StrutStyle? strutStyle, bool? showCursor = false, bool? autofocus = false, double? cursorWidth = 2.0, Radius? cursorRadius, Color? cursorColor, DragStartBehavior? dragStartBehavior = DragStartBehavior.start, bool? enableInteractiveSelection = true, GestureTapCallback? onTap, ScrollPhysics? scrollPhysics, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior, double? cursorHeight, TextSelectionControls? selectionControls, SelectionChangedCallback? onSelectionChanged}) -
const
Properties
- autofocus → bool?
-
Whether this text field should focus itself if nothing else is already focused.
final
- cursorColor → Color?
-
The color to use when painting the cursor
final
- cursorHeight → double?
-
How tall the cursor will be.
final
- cursorRadius → Radius?
-
How rounded the corners of the cursor should be
final
- cursorWidth → double?
-
Configuration of toolbar options
How thick the cursor will be
final
- dragStartBehavior → DragStartBehavior?
-
Determines the way that drag start behavior is handled
final
- enableInteractiveSelection → bool?
-
If true, then long-pressing this TextField will select text and show the cut/copy/paste menu,
and tapping will move the text caret
final
- focusNode → FocusNode?
-
Defines the focus for this widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
linkifiers
→ List<
Linkifier> ? -
Linkifiers to be used for linkify
final
- linkStyle → TextStyle?
-
Style of link text
final
- maxLines → int?
-
The maximum number of lines for the text to span, wrapping if necessary
final
- minLines → int?
-
The minimum number of lines to occupy when the content spans fewer lines.
final
- onOpen → LinkCallback?
-
Callback for tapping a link
final
- onSelectionChanged → SelectionChangedCallback?
-
Called when the user changes the selection of text (including the cursor location).
final
- onTap → GestureTapCallback?
-
Called when the user taps on this selectable text (not link)
final
- options → LinkifyOptions?
-
linkify's options.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPhysics → ScrollPhysics?
-
final
- selectionControls → TextSelectionControls?
-
Optional delegate for building the text selection handles and toolbar.
final
- showCursor → bool?
-
Whether to show cursor
final
- strutStyle → StrutStyle?
-
The strut style used for the vertical layout
final
- style → TextStyle?
-
Style for non-link text
final
- text → String?
-
Text to be linkified
final
- textAlign → TextAlign?
-
How the text should be aligned horizontally.
final
- textDirection → TextDirection?
-
Text direction of the text
final
- textHeightBehavior → TextHeightBehavior?
-
Defines how the paragraph will apply TextStyle.height to the ascent of the first line and descent of the last line.
final
- textScaleFactor → dynamic
-
The number of font pixels for each logical pixel
final
- textWidthBasis → TextWidthBasis?
-
Defines how to measure the width of the rendered text.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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, int wrapWidth = 65}) → 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