selectable library

Classes

DefaultSelectionPainter
DefaultSelectionPainter
IgnoreSelectable
A widget that is invisible to selection via its Selectable ancestor widget.
RenderIgnoreSelectable
A render object that is invisible for to selection via its Selectable ancestor widget.
Selectable
A widget that enables text selection over all the text widgets it contains.
SelectableController
Provides a way to be notified of selection changes and a way to select and deselect text.
SelectableMenuItem
Selection
Selection
SelectionAnchor
The render paragraph index and text selection for the start or end anchor.
SelectionDragInfo
SelectionDragInfo
SelectionPainter
SelectionPainter
SelectionParagraph
Render paragraph data.
SelectionRectifiers
TaggedText
Tagged text.
TaggedTextSpan
TaggedTextSpan extends TextSpan to include a tag object and the ability to be split at a provided index. Other than that it is functionally equivalent to TextSpan.
TaggedWidgetSpan
TaggedWidgetSpan extends WidgetSpan to include a tag object. Other than that it is functionally equivalent to WidgetSpan.

Mixins

SplittableTextSpanTag<T>
Mixin for tag classes that support being split along with the text span they are tagging.

Constants

objectReplacementCharacterCode → const int
The character code Flutter uses to represent a widget span in a string.

Functions

createTextSelection(String str, {int? baseOffset, int? extentOffset, bool trim = true}) TextSelection?
Returns a new TextSelection, trimming whitespace characters if specified.
isNonWordCharacter(int char) bool
isWhitespaceCharacter(int char) bool
Returns true if the character is a whitespace character.
isWhitespaceRune(int char) bool
Returns true if the character is a whitespace character.

Typedefs

InlineSpanVisitorWithIndex = bool Function(InlineSpan span, int index)
Called on each span as InlineSpan.visitChildrenEx walks the InlineSpan tree.
SelectableMenuItemHandlerFunc = bool Function(SelectableController? controller)