down method

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

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

Implementation

Future<void> down(Offset downLocation, { Duration timeStamp = Duration.zero }) 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));
  });
}