registerOnDoubleTouch method

void registerOnDoubleTouch(
  1. 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. Pass null to unregister.

Implementation

void registerOnDoubleTouch(final TouchCallback? doubleTouchCallback) {
  _touchDoubleCallback = doubleTouchCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onDoubleTouch',
    doubleTouchCallback == null,
  );
}