rejectGesture method

  1. @override
void rejectGesture (int pointer)
override

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

Implementation

@override
void rejectGesture(int pointer) {
  super.rejectGesture(pointer);
  if (pointer == primaryPointer) {
    // Another gesture won the arena.
    assert(state != GestureRecognizerState.possible);
    if (onTapCancel != null)
      invokeCallback<void>('forced onTapCancel', onTapCancel);
    _reset();
  }
}