rejectGesture method

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

Called when this member loses the arena for the given pointer id.

Implementation

@override
void rejectGesture(int pointer) {
  _TapTracker? tracker = _trackers[pointer];
  // If tracker isn't in the list, check if this is the first tap tracker
  if (tracker == null &&
      _firstTap != null &&
      _firstTap!.pointer == pointer) {
    tracker = _firstTap;
  }
  // If tracker is still null, we rejected ourselves already
  if (tracker != null) {
    _reject(tracker);
  }
}