didExceedDeadline method

  1. @override
void didExceedDeadline ()
override

Override to be notified when deadline is exceeded.

You must override this method if you supply a deadline.

Implementation

@override
void didExceedDeadline() {
  resolve(GestureDisposition.accepted);
  _longPressAccepted = true;
  if (onLongPress != null) {
    invokeCallback<void>('onLongPress', onLongPress);
  }
}