waitForCondition method Null safety

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));
}