TextSelectionController class

Coordinates one read-only range across editor and native Text instances. The host supplies targets in reading order and arbitrates pointer-down against its other interactive objects. Once captured, moves may cross gaps.

Constructors

TextSelectionController()

Properties

appearance ↔ SelectionAppearance
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasSelection → bool
no setter
isActive → bool
no setter
isDragging → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedText → String
no setter

Methods

cancel({int pointerId = 0}) → void
clear() → void
hitTest(Vec2D point) → TextSelectionTarget?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointerDown(TextSelectionTarget target, Vec2D point, {int pointerId = 0, bool extend = false}) → bool
pointerMove(Vec2D point, {int pointerId = 0}) → bool
pointerUp(Vec2D point, {int pointerId = 0}) → bool
selectAll() → void
toString() → String
A string representation of this object.
inherited
updateTargets(Iterable<TextSelectionTarget> targets) → void
validate() → bool
Clear the complete range when a participant changes or disappears.

Operators

operator ==(Object other) → bool
The equality operator.
inherited