SelectionChangedCause enum
Indicates what triggered the change in selected text (including changes to the cursor location).
Values
- tap → const SelectionChangedCause
-
The user tapped on the text and that caused the selection (or the location of the cursor) to change.
- doubleTap → const SelectionChangedCause
-
The user tapped twice in quick succession on the text and that caused the selection (or the location of the cursor) to change.
- longPress → const SelectionChangedCause
-
The user long-pressed the text and that caused the selection (or the location of the cursor) to change.
- forcePress → const SelectionChangedCause
-
The user force-pressed the text and that caused the selection (or the location of the cursor) to change.
- keyboard → const SelectionChangedCause
-
The user used the keyboard to change the selection or the location of the cursor.
Keyboard-triggered selection changes may be caused by the IME as well as by accessibility tools (e.g. TalkBack on Android).
- toolbar → const SelectionChangedCause
-
The user used the selection toolbar to change the selection or the location of the cursor.
An example is when the user taps on select all in the tool bar.
- drag → const SelectionChangedCause
-
The user used the mouse to change the selection by dragging over a piece of text.
- scribble → const SelectionChangedCause
-
The user used iPadOS 14+ Scribble to change the selection.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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<
SelectionChangedCause> - A constant List of the values in this enum, in order of their declaration.