registerOnShove method

void registerOnShove(
  1. ShoveCallback? shoveCallback
)

Registers for two-pointer shove gestures.

A shove occurs when two pointers move while keeping their spacing and relative angle within thresholds.

Parameters

  • shoveCallback: (ShoveCallback?) Receives the pointer angle and midpoint trajectory. Pass null to unregister.

Implementation

void registerOnShove(final ShoveCallback? shoveCallback) {
  _shoveCallback = shoveCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onShove',
    shoveCallback == null,
  );
}