didStopTrackingLastPointer method Null safety

  1. @override
void didStopTrackingLastPointer(
  1. int pointer

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.


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