DirectionallyExtendSelectionEvent class
Extends the current selection with respect to a direction.
To handle this event, move the associated selection edge, as dictated by isEnd, according to the direction.
The movements are always based on dx. The value is in global coordinates and is the horizontal offset the selection edge should move to when moving to across lines.
- Inheritance
-
- Object
- SelectionEvent
- DirectionallyExtendSelectionEvent
Constructors
- DirectionallyExtendSelectionEvent({required double dx, required bool isEnd, required SelectionExtendDirection direction})
-
Creates a DirectionallyExtendSelectionEvent.
const
Properties
- direction → SelectionExtendDirection
-
The directional movement of this event.
final
- dx → double
-
The horizontal offset the selection should move to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEnd → bool
-
Whether this event is updating the end selection edge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → SelectionEventType
-
The type of this selection event.
finalinherited
Methods
-
copyWith(
{double? dx, bool? isEnd, SelectionExtendDirection? direction}) → DirectionallyExtendSelectionEvent - Makes a copy of this object with its property replaced with the new values.
-
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