SelectionChangedCause enum Null safety

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

Inheritance

Constructors

SelectionChangedCause()
const

Values

tap → const SelectionChangedCause

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

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

SelectionChangedCause()
longPress → const SelectionChangedCause

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

SelectionChangedCause()
forcePress → const SelectionChangedCause

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

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

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

SelectionChangedCause()
drag → const SelectionChangedCause

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

SelectionChangedCause()
scribble → const SelectionChangedCause

The user used iPadOS 14+ Scribble to change the selection.

SelectionChangedCause()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[tap, doubleTap, longPress, forcePress, keyboard, toolbar, drag, scribble]