GestureType enum

The gestures available to dismiss the keyboard with KeyboardDismisser.

Note that these gestures are also the ones available in GestureDetector from Flutter's widgets library, except for onPanUpdateDownDirection, onPanUpdateUpDirection, onPanUpdateLeftDirection and onPanUpdateRightDirection, which are special types of onPanUpdateAnyDirection (corresponding to GestureDetector.onPanUpdate) that will trigger the keyboard's dismissal when swiping only in the specified direction (down, up, left and right, respectively).

Just like with GestureDetector, pan and scale callbacks cannot be used simultaneously, and horizontal and vertical drag callbacks cannot be used simultaneously.

See also:

Inheritance

Constructors

GestureType()
const

Values

onTapDown → const GestureType

A GestureType that represents the event in which a pointer that might cause a tap has contacted the screen at a particular location.

onTapUp → const GestureType

A GestureType that represents the event in which a pointer that will trigger a tap has stopped contacting the screen at a particular location.

onTap → const GestureType

A GestureType that represents the event in which a tap has occurred.

onTapCancel → const GestureType

A GestureType that represents the event in which the pointer that previously triggered a GestureType.onTapDown event will not end up causing a tap.

onSecondaryTapDown → const GestureType

A GestureType that represents the event in which a pointer that might cause a secondary tap has contacted the screen at a particular location.

onSecondaryTapUp → const GestureType

A GestureType that represents the event in which a pointer that will trigger a secondary tap has stopped contacting the screen at a particular location.

onSecondaryTapCancel → const GestureType

A GestureType that represents the event in which the pointer that previously triggered GestureType.onSecondaryTapDown will not end up causing a tap.

onDoubleTap → const GestureType

A GestureType that represents the event in which a pointer that might cause a double tap has contacted the screen at a particular location.

onLongPress → const GestureType

A GestureType that represents the event in which a long press gesture has been recognized.

onLongPressStart → const GestureType

A GestureType that represents the event in which a long press gesture has been recognized.

onLongPressMoveUpdate → const GestureType

A GestureType that represents the event in which a pointer has been drag-moved after a long-press.

onLongPressUp → const GestureType

A GestureType that represents the event in which a pointer that has triggered a long-press has stopped contacting the screen.

onLongPressEnd → const GestureType

A GestureType that represents the event in which a pointer that has triggered a long-press has stopped contacting the screen.

onVerticalDragDown → const GestureType

A GestureType that represents the event in which a pointer has contacted the screen and might begin to move vertically.

onVerticalDragStart → const GestureType

A GestureType that represents the event in which a pointer has contacted the screen and has begun to move vertically.

onVerticalDragUpdate → const GestureType

A GestureType that represents the event in which a pointer that is in contact with the screen and moving vertically has moved in the vertical direction.

onVerticalDragEnd → const GestureType

A GestureType that represents the event in which a pointer that was previously in contact with the screen and moving vertically is no longer in contact with the screen and was moving at a specific velocity when it stopped contacting the screen.

onVerticalDragCancel → const GestureType

A GestureType that represents the event in which the pointer that previously triggered GestureType.onVerticalDragDown did not complete.

onHorizontalDragDown → const GestureType

A GestureType that represents the event in which a pointer has contacted the screen and might begin to move horizontally.

onHorizontalDragStart → const GestureType

A GestureType that represents the event in which a pointer has contacted the screen and has begun to move horizontally.

onHorizontalDragUpdate → const GestureType

A GestureType that represents the event in which a pointer that is in contact with the screen and moving horizontally has moved in the horizontal direction.

onHorizontalDragEnd → const GestureType

A GestureType that represents the event in which a pointer that was previously in contact with the screen and moving horizontally is no longer in contact with the screen and was moving at a specific velocity when it stopped contacting the screen.

onHorizontalDragCancel → const GestureType

A GestureType that represents the event in which the pointer that previously triggered GestureType.onHorizontalDragDown did not complete.

onForcePressStart → const GestureType

A GestureType that represents the event in which the pointer is in contact with the screen and has pressed with sufficient force to initiate a force press.

onForcePressPeak → const GestureType

A GestureType that represents the event in which the pointer is in contact with the screen and has pressed with the maximum force.

onForcePressUpdate → const GestureType

A GestureType that represents the event in which a pointer is in a contact with force with the screen and is either moving on the plane of the screen, pressing the screen with varying forces or both simultaneously.

onForcePressEnd → const GestureType

A GestureType that represents the event in which the pointer is no longer in contact with the screen.

onPanDown → const GestureType

A GestureType that represents the event in which a pointer has contacted the screen and might begin to move.

onPanStart → const GestureType

A GestureType that represents the event in which a pointer has contacted the screen and has begun to move.

onPanUpdateAnyDirection → const GestureType

A GestureType that represents the event in which a pointer that is in contact with the screen and moving has moved again.

onPanUpdateDownDirection → const GestureType

A GestureType that represents the event in which a pointer that is in contact with the screen and moving has moved again, moving vertically in a downward direction.

onPanUpdateUpDirection → const GestureType

A GestureType that represents the event in which a pointer that is in contact with the screen and moving has moved again, moving vertically in a upward direction.

onPanUpdateLeftDirection → const GestureType

A GestureType that represents the event in which a pointer that is in contact with the screen and moving has moved again, moving horizontally in a leftward direction.

onPanUpdateRightDirection → const GestureType

A GestureType that represents the event in which a pointer that is in contact with the screen and moving has moved again, moving horizontally in a rightward direction.

onPanEnd → const GestureType

A GestureType that represents the event in which a pointer that was previously in contact with the screen and moving is no longer in contact with the screen and was moving at a specific velocity when it stopped contacting the screen.

onPanCancel → const GestureType

A GestureType that represents the event in which the pointer that previously triggered GestureType.onPanDown did not complete.

onScaleStart → const GestureType

A GestureType that represents the event in which the pointers in contact with the screen have established a focal point.

onScaleUpdate → const GestureType

A GestureType that represents the event in which the pointers in contact with the screen have indicated a new focal point and/or scale.

onScaleEnd → const GestureType

A GestureType that represents the event in which the pointers are no longer in contact with the screen.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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.