waitUntilNoTransientCallbacks method

Future<void> waitUntilNoTransientCallbacks ({Duration timeout })

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 {
  await _sendCommand(WaitUntilNoTransientCallbacks(timeout: timeout));
}