waitForTap method

Future<void> waitForTap()

Waits for the Frame to be tapped before continuing.

Implementation

Future<void> waitForTap() async {
  Completer<void> completer = Completer<void>();
  await runOnTap(callback: () => completer.complete());
  await completer.future;
  await runOnTap();
}