SelectionExtendDirection enum
The direction to extend a selection.
The DirectionallyExtendSelectionEvent uses this enum to describe how Selectable should extend their selection.
Values
- previousLine → const SelectionExtendDirection
-
Move one edge of the selection vertically to the previous adjacent line.
For text selection, it should consider both soft and hard linebreak.
See DirectionallyExtendSelectionEvent.dx on how to calculate the horizontal offset.
- nextLine → const SelectionExtendDirection
-
Move one edge of the selection vertically to the next adjacent line.
For text selection, it should consider both soft and hard linebreak.
See DirectionallyExtendSelectionEvent.dx on how to calculate the horizontal offset.
- forward → const SelectionExtendDirection
-
Move the selection edges forward to a certain horizontal offset in the same line.
If there is no on-going selection, the selection must start with the first line (or equivalence of first line in a non-text selectable) and select toward the horizontal offset in the same line.
The selectable that receives DirectionallyExtendSelectionEvent with this enum must return SelectionResult.end.
See DirectionallyExtendSelectionEvent.dx on how to calculate the horizontal offset.
- backward → const SelectionExtendDirection
-
Move the selection edges backward to a certain horizontal offset in the same line.
If there is no on-going selection, the selection must start with the last line (or equivalence of last line in a non-text selectable) and select backward the horizontal offset in the same line.
The selectable that receives DirectionallyExtendSelectionEvent with this enum must return SelectionResult.end.
See DirectionallyExtendSelectionEvent.dx on how to calculate the horizontal offset.
Properties
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
Constants
-
values
→ const List<
SelectionExtendDirection> - A constant List of the values in this enum, in order of their declaration.