stopTrackingPointer method

  1. @protected
void stopTrackingPointer(
  1. int pointer

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.


void stopTrackingPointer(int pointer) {
  if (_trackedPointers.contains(pointer)) {
    GestureBinding.instance.pointerRouter.removeRoute(pointer, handleEvent);
    if (_trackedPointers.isEmpty) {