panZoomStart method

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

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 }) async {
  assert(_pointer.kind == PointerDeviceKind.trackpad, 'Only trackpads can send PointerPanZoom events.');
  return TestAsyncUtils.guard<void>(() async {
    return _dispatcher(_pointer.panZoomStart(location, timeStamp: timeStamp));
  });
}