panZoomUpdate method

Future<void> panZoomUpdate(
  1. Offset location,
  2. {Offset pan = Offset.zero,
  3. double scale = 1,
  4. double rotation = 0,
  5. Duration timeStamp = Duration.zero}
)

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

Implementation

Future<void> panZoomUpdate(Offset location, {
  Offset pan = Offset.zero,
  double scale = 1,
  double rotation = 0,
  Duration timeStamp = Duration.zero
}) async {
  assert(_pointer.kind == PointerDeviceKind.trackpad, 'Only trackpads can send PointerPanZoom events.');
  return TestAsyncUtils.guard<void>(() async {
    return _dispatcher(_pointer.panZoomUpdate(location,
      pan: pan,
      scale: scale,
      rotation: rotation,
      timeStamp: timeStamp
    ));
  });
}