didExceedDeadline method

  1. @override
void didExceedDeadline()
override

Override to be notified when deadline is exceeded.

You must override this method or didExceedDeadlineWithEvent if you supply a deadline. Subclasses that override this method must not call super.didExceedDeadline().

Implementation

@override
void didExceedDeadline() {
  // Exceeding the deadline puts the gesture in the accepted state.
  resolve(GestureDisposition.accepted);
  _longPressAccepted = true;
  super.acceptGesture(primaryPointer!);
  _checkLongPressStart();
}