stopTrackingPointer method

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

Stops events related to the given pointer ID from being routed to this recognizer.

If this function reduces the number of tracked pointers to zero, it will call didStopTrackingLastPointer synchronously.

Use startTrackingPointer to add the routes in the first place.

Implementation

@override
void stopTrackingPointer(int pointer) {
  if (pointerUp) {
    super.stopTrackingPointer(pointer);
    pointerUp = false;
  }
}