SelectionChangedCause enum Null safety

Indicates what triggered the change in selected text (including changes to the cursor location).

Constants

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.

const SelectionChangedCause(1)
drag → const SelectionChangedCause

The user used the mouse to change the selection by dragging over a piece of text.

const SelectionChangedCause(6)
forcePress → const SelectionChangedCause

The user force-pressed the text and that caused the selection (or the location of the cursor) to change.

const SelectionChangedCause(3)
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).

const SelectionChangedCause(4)
longPress → const SelectionChangedCause

The user long-pressed the text and that caused the selection (or the location of the cursor) to change.

const SelectionChangedCause(2)
tap → const SelectionChangedCause

The user tapped on the text and that caused the selection (or the location of the cursor) to change.

const SelectionChangedCause(0)
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.

const SelectionChangedCause(5)
values → const List<SelectionChangedCause>

A constant List of the values in this enum, in order of their declaration.

const List<SelectionChangedCause>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited