panZoomStart method

Future<void> panZoomStart(
  1. Offset location, {
  2. Duration timeStamp = Duration.zero,
  3. FlutterView? view,
})

Dispatch a pointer pan zoom start event at the given location, caching the hit test result.

Implementation

Future<void> panZoomStart(
  Offset location, {
  Duration timeStamp = Duration.zero,
  FlutterView? view,
}) async {
  assert(
    _pointer.kind == PointerDeviceKind.trackpad,
    'Only trackpads can send PointerPanZoom events.',
  );
  return TestAsyncUtils.guard<void>(() async {
    return _dispatcher(_pointer.panZoomStart(location, timeStamp: timeStamp, view: view));
  });
}