down method

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

Dispatch a pointer down event at the given downLocation, caching the hit test result.

Implementation

Future<void> down(
  Offset downLocation, {
  Duration timeStamp = Duration.zero,
  FlutterView? view,
}) async {
  assert(
    _pointer.kind != PointerDeviceKind.trackpad,
    'Trackpads are expected to send panZoomStart events, not down events.',
  );
  return TestAsyncUtils.guard<void>(() async {
    return _dispatcher(_pointer.down(downLocation, timeStamp: timeStamp, view: view));
  });
}