ExtendedSelectableText class

Inheritance

Constructors

ExtendedSelectableText(String data, {Key? key, FocusNode? focusNode, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, TextScaler? textScaler, bool showCursor = false, bool autofocus = false, @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions, int? minLines, int? maxLines, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight, DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool enableInteractiveSelection = true, TextSelectionControls? selectionControls, GestureTapCallback? onTap, ScrollPhysics? scrollPhysics, String? semanticsLabel, TextHeightBehavior? textHeightBehavior, TextWidthBasis? textWidthBasis, SelectionChangedCallback? onSelectionChanged, ExtendedEditableTextContextMenuBuilder? extendedContextMenuBuilder = ExtendedTextField._defaultContextMenuBuilder, TextMagnifierConfiguration? magnifierConfiguration, SpecialTextSpanBuilder? specialTextSpanBuilder})
const
ExtendedSelectableText.rich(TextSpan textSpan, {Key? key, FocusNode? focusNode, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, TextScaler? textScaler, bool showCursor = false, bool autofocus = false, @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions, int? minLines, int? maxLines, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight, DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool enableInteractiveSelection = true, TextSelectionControls? selectionControls, GestureTapCallback? onTap, ScrollPhysics? scrollPhysics, String? semanticsLabel, TextHeightBehavior? textHeightBehavior, TextWidthBasis? textWidthBasis, SelectionChangedCallback? onSelectionChanged, ExtendedEditableTextContextMenuBuilder? extendedContextMenuBuilder = ExtendedTextField._defaultContextMenuBuilder, TextMagnifierConfiguration? magnifierConfiguration, SpecialTextSpanBuilder? specialTextSpanBuilder})
const

Properties

autofocus bool
Whether this text field should focus itself if nothing else is already focused.
finalinherited
contextMenuBuilder EditableTextContextMenuBuilder?
Builds the text selection toolbar when requested by the user.
finalinherited
cursorColor Color?
The color of the cursor.
finalinherited
cursorHeight double?
How tall the cursor will be.
finalinherited
cursorRadius Radius?
How rounded the corners of the cursor should be.
finalinherited
cursorWidth double
How thick the cursor will be.
finalinherited
data String?
The text to display.
finalinherited
dragStartBehavior DragStartBehavior
Determines the way that drag start behavior is handled.
finalinherited
enableInteractiveSelection bool
Whether to enable user interface affordances for changing the text selection.
finalinherited
extendedContextMenuBuilder ExtendedEditableTextContextMenuBuilder?
Builds the text selection toolbar when requested by the user.
final
focusNode FocusNode?
Defines the focus for this widget.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
magnifierConfiguration TextMagnifierConfiguration?
A configuration object for a magnifier.
finalinherited
maxLines int?
The maximum number of lines to show at one time, wrapping if necessary.
finalinherited
minLines int?
The minimum number of lines to occupy when the content spans fewer lines.
finalinherited
onSelectionChanged SelectionChangedCallback?
Called when the user changes the selection of text (including the cursor location).
finalinherited
onTap GestureTapCallback?
Called when the user taps on this selectable text.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollPhysics ScrollPhysics?
The ScrollPhysics to use when vertically scrolling the input.
finalinherited
selectionControls TextSelectionControls?
Optional delegate for building the text selection handles.
finalinherited
selectionEnabled bool
Same as enableInteractiveSelection.
no setterinherited
selectionHeightStyle BoxHeightStyle
Controls how tall the selection highlight boxes are computed to be.
finalinherited
selectionWidthStyle BoxWidthStyle
Controls how wide the selection highlight boxes are computed to be.
finalinherited
semanticsLabel String?
An alternative semantics label for this text.
finalinherited
showCursor bool
Whether to show cursor.
finalinherited
specialTextSpanBuilder SpecialTextSpanBuilder?
build your ccustom text span
final
strutStyle StrutStyle?
The strut style used for the vertical layout.
finalinherited
style TextStyle?
The style to use for the text.
finalinherited
textAlign TextAlign?
How the text should be aligned horizontally.
finalinherited
textDirection TextDirection?
The directionality of the text.
finalinherited
textHeightBehavior TextHeightBehavior?
Defines how to apply TextStyle.height over and under text.
finalinherited
textScaler TextScaler?
The font scaling strategy to use when laying out and rendering the text.
finalinherited
textSpan TextSpan?
The text to display as a TextSpan.
finalinherited
textWidthBasis TextWidthBasis?
Defines how to measure the width of the rendered text.
finalinherited
toolbarOptions ToolbarOptions?
Configuration of toolbar options.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<_SelectableText>
Creates the mutable state for this widget at a given location in the tree.
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