GestureRecognizerState enum Null safety

The possible states of a PrimaryPointerGestureRecognizer.

The recognizer advances from ready to possible when it starts tracking a primary pointer. Where it advances from there depends on how the gesture is resolved for that pointer:

  • If the primary pointer is resolved by the gesture winning the arena, the recognizer stays in the possible state as long as it continues to track a pointer.
  • If the primary pointer is resolved by the gesture being rejected and losing the arena, the recognizer's state advances to defunct.

Once the recognizer has stopped tracking any remaining pointers, the recognizer returns to ready.

Inheritance

Constructors

GestureRecognizerState()
const

Values

ready → const GestureRecognizerState

The recognizer is ready to start recognizing a gesture.

GestureRecognizerState()
possible → const GestureRecognizerState

The sequence of pointer events seen thus far is consistent with the gesture the recognizer is attempting to recognize but the gesture has not been accepted definitively.

GestureRecognizerState()
defunct → const GestureRecognizerState

Further pointer events cannot cause this recognizer to recognize the gesture until the recognizer returns to the ready state (typically when all the pointers the recognizer is tracking are removed from the screen).

GestureRecognizerState()

Properties

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

Operators

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

Constants

values → const List<GestureRecognizerState>
A constant List of the values in this enum, in order of their declaration.
[ready, possible, defunct]