SelectionGesture enum

A type of selection gesture recognized by the gesture detector.

Each gesture maps to a distinct user interaction pattern. Disable individual gestures via TerminalGestureSettings.enabledSelections.

// Disable drag selection, keep word and line selection.
TerminalGestureSettings(
  enabledSelections: {SelectionGesture.word, SelectionGesture.line},
)
Inheritance
Available extensions

Values

drag → const SelectionGesture

Click and drag on desktop.

word → const SelectionGesture

Double-tap to select a word.

line → const SelectionGesture

Triple-tap to select a logical line (follows soft wraps).

longPress → const SelectionGesture

Long press on touch devices.

selectAll → const SelectionGesture

Select all via keyboard shortcut (Cmd+A on macOS, Ctrl+A elsewhere).

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

all → const Set<SelectionGesture>
All recognized selection gestures.
values → const List<SelectionGesture>
A constant List of the values in this enum, in order of their declaration.