didStopTrackingLastPointer method

  1. @override
void didStopTrackingLastPointer(
  1. int pointer
)
override

Called when the number of pointers this recognizer is tracking changes from one to zero.

The given pointer ID is the ID of the last pointer this recognizer was tracking.

Implementation

@override
void didStopTrackingLastPointer(int pointer) {
  assert(state != GestureRecognizerState.ready);
  _stopTimer();
  _state = GestureRecognizerState.ready;
  _initialPosition = null;
  _gestureAccepted = false;
}