GestureType enum

Defines the different types of gestures that can be detected by OnGesture.

These gesture types represent common interactions across different input devices.

See also:

  • doc/component/gesture.md for more detailed documentation
  • OnGesture, which uses these gesture types
Inheritance
Available extensions

Values

press → const GestureType

Primary tap/click (left click on desktop)

secondaryPress → const GestureType

Secondary tap/click (right click on desktop)

tertiaryPress → const GestureType

Tertiary tap/click (middle click on desktop)

longPress → const GestureType

Long press with primary button

longSecondaryPress → const GestureType

Long press with secondary button

longTertiaryPress → const GestureType

Long press with tertiary button

doublePress → const GestureType

Double tap/click

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<GestureType>
A constant List of the values in this enum, in order of their declaration.