onLongPressCancel property

GestureLongPressCancelCallback? onLongPressCancel
getter/setter pair

Called when a pointer that previously triggered onLongPressDown will not end up causing a long-press.

This triggers once the gesture loses the arena if onLongPressDown has previously been triggered.

If this recognizer wins the arena, onLongPressStart and onLongPress are called instead.

If the gesture is deactivated due to postAcceptSlopTolerance having been exceeded, this callback will not be called, since the gesture will have already won the arena at that point.

See also:


GestureLongPressCancelCallback? onLongPressCancel;