registerOnTwoDoubleTouches method

void registerOnTwoDoubleTouches(
  1. TouchCallback? twoDoubleTouchCallback
)

Registers a callback for two-pointer double-touch gestures.

The event fires when two consecutive two-touch gestures occur within the configured timing thresholds.

Parameters

  • twoDoubleTouchCallback: (TouchCallback?) Receives the midpoint of the touch positions. Pass null to unsubscribe.

Implementation

void registerOnTwoDoubleTouches(final TouchCallback? twoDoubleTouchCallback) {
  _touchTwoDoubleCallback = twoDoubleTouchCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onTwoDoubleTouches',
    twoDoubleTouchCallback == null,
  );
}