rejectGesture method

  1. @override
void rejectGesture()
override

Called when this recognizer loses the arena.

Implementation

@override
void rejectGesture() {
  if (state == GestureRecognizerState.possible) {
    addCmd(onTapCancel?.call());
  }
  state = GestureRecognizerState.defunct;
}