onPinch method
Called when a continuous two-pointer pinch gesture occurs.
A pinch is formed by two pointers moving while remaining in contact with the screen.
Parameters
start1: Initial position of the first pointer.start2: Initial position of the second pointer.end1: Current position of the first pointer.end2: Current position of the second pointer.center: Computed gesture center.
Implementation
@override
void onPinch(
final Point<int> start1,
final Point<int> start2,
final Point<int> end1,
final Point<int> end2,
final Point<int> center,
) {
_pinchCallback?.call(start1, start2, end1, end2, center);
}