registerOnTouchPinch method

void registerOnTouchPinch(
  1. TouchPinchCallback? touchPinchCallback
)

Registers a callback for touch-initiated pinch gestures.

Touch-pinch mode starts with a single tap immediately followed by two pointers landing near the original touch.

Parameters

  • touchPinchCallback: (TouchPinchCallback?) Receives pointer trajectories. Pass null to unregister.

Implementation

void registerOnTouchPinch(final TouchPinchCallback? touchPinchCallback) {
  _touchPinchCallback = touchPinchCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onTouchPinch',
    touchPinchCallback == null,
  );
}