waitFor method

Future<void> waitFor(
  1. SerializableFinder finder,
  2. {Duration? timeout}
)

Waits until finder locates the target.

The finder will wait until there is no pending frame scheduled in the app under test before executing an action.

See also:

Implementation

Future<void> waitFor(SerializableFinder finder, { Duration? timeout }) async {
  await sendCommand(WaitFor(finder, timeout: timeout));
}