down method Null safety

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 {
  return TestAsyncUtils.guard<void>(() async {
    return _dispatcher(_pointer.down(downLocation, timeStamp: timeStamp));
  });
}