waitUntilNoTransientCallbacks method
Waits until there are no more transient callbacks in the queue.
Use this method when you need to wait for the moment when the application becomes "stable", for example, prior to taking a screenshot.
Implementation
Future<void> waitUntilNoTransientCallbacks({Duration timeout}) async {
timeout ??= _shortTimeout(timeoutMultiplier);
await _sendCommand(WaitUntilNoTransientCallbacks(timeout: timeout));
}