waitForCondition method

Future<void> waitForCondition (
  1. SerializableWaitCondition waitCondition,
  2. {Duration timeout}
)

Waits until the given waitCondition is satisfied.

Implementation

Future<void> waitForCondition(SerializableWaitCondition waitCondition, {Duration timeout}) async {
  await _sendCommand(WaitForCondition(waitCondition, timeout: timeout));
}