panZoomEnd method
- Duration timeStamp = Duration.zero,
- FlutterView? view,
Create a PointerPanZoomEndEvent to end the active pan/zoom sequence on this pointer.
By default, the time stamp on the event is Duration.zero. You can give a
specific time stamp by passing the timeStamp argument.
Implementation
PointerPanZoomEndEvent panZoomEnd({Duration timeStamp = Duration.zero, FlutterView? view}) {
assert(isPanZoomActive);
assert(kind == PointerDeviceKind.trackpad);
_isPanZoomActive = false;
_pan = null;
return PointerPanZoomEndEvent(
viewId: view?.viewId ?? WidgetsBinding.instance.platformDispatcher.implicitView!.viewId,
timeStamp: timeStamp,
device: _device,
pointer: pointer,
position: location!,
);
}