panZoomEnd method
- Duration timeStamp = Duration.zero,
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
}) {
assert(isPanZoomActive);
assert(kind == PointerDeviceKind.trackpad);
_isPanZoomActive = false;
_pan = null;
return PointerPanZoomEndEvent(
timeStamp: timeStamp,
device: _device,
pointer: pointer,
position: location!,
);
}