registerOnDoubleTouch method
void
registerOnDoubleTouch(
- TouchCallback? doubleTouchCallback
Registers a callback for double-touch (double-tap) gestures.
The gesture is detected when two taps occur within the configured time and distance thresholds.
Parameters
doubleTouchCallback: (TouchCallback?) Invoked with the touch position. Passnullto unregister.
Implementation
void registerOnDoubleTouch(final TouchCallback? doubleTouchCallback) {
_touchDoubleCallback = doubleTouchCallback;
GemKitPlatform.instance.filterEvent(
pointerId,
'onDoubleTouch',
doubleTouchCallback == null,
);
}