onPinchSwipe method

  1. @override
void onPinchSwipe(
  1. Point<int> centerPosInPix,
  2. double zoomingSpeedInMMPerSec,
  3. double rotatingSpeedInMMPerSec
)

Called when a two-pointer pinch-swipe gesture occurs.

A pinch-swipe occurs when two pointers touch, then move quickly to zoom or rotate while lifting.

Parameters

  • centerPosInPix: Gesture center in pixels.
  • zoomingSpeedInMMPerSec: Zoom velocity in millimetres per second.
  • rotatingSpeedInMMPerSec: Rotation velocity in millimetres per second.

Implementation

@override
void onPinchSwipe(
  final Point<int> centerPosInPix,
  final double zoomingSpeedInMMPerSec,
  final double rotatingSpeedInMMPerSec,
) {
  _pinchSwipeCallback?.call(
    centerPosInPix,
    zoomingSpeedInMMPerSec,
    rotatingSpeedInMMPerSec,
  );
}