tapAt method

Future<void> tapAt(
  1. Offset location,
  2. {int? pointer,
  3. int buttons = kPrimaryButton,
  4. PointerDeviceKind kind = PointerDeviceKind.touch}
)

Dispatch a pointer down / pointer up sequence at the given location.

Implementation

Future<void> tapAt(
  Offset location, {
  int? pointer,
  int buttons = kPrimaryButton,
  PointerDeviceKind kind = PointerDeviceKind.touch,
}) {
  return TestAsyncUtils.guard<void>(() async {
    final TestGesture gesture = await startGesture(location, pointer: pointer, buttons: buttons, kind: kind);
    await gesture.up();
  });
}