SelectionEdgeUpdateEvent class
Updates a selection edge.
An active selection contains two edges, start and end. Use the type to determine which edge this event applies to. If the type is SelectionEventType.startEdgeUpdate, the event updates start edge. If the type is SelectionEventType.endEdgeUpdate, the event updates end edge.
The globalPosition contains the new offset of the edge.
The granularity contains the granularity that the selection edge should move by. Only TextGranularity.character and TextGranularity.word are currently supported.
This event is dispatched when the framework detects TapDragStartDetails in SelectionArea's gesture recognizers for mouse devices, or the selection handles have been dragged to new locations.
- Inheritance
-
- Object
- SelectionEvent
- SelectionEdgeUpdateEvent
Constructors
- SelectionEdgeUpdateEvent.forEnd({required Offset globalPosition, TextGranularity? granularity})
-
Creates a selection end edge update event.
const
- SelectionEdgeUpdateEvent.forStart({required Offset globalPosition, TextGranularity? granularity})
-
Creates a selection start edge update event.
const
Properties
- globalPosition → Offset
-
The new location of the selection edge.
final
- granularity → TextGranularity
-
The granularity for which the selection moves.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → SelectionEventType
-
The type of this selection event.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited