waitUntilNoTransientCallbacks method

Future<void> waitUntilNoTransientCallbacks(
  1. {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.


Future<void> waitUntilNoTransientCallbacks({ Duration? timeout }) async {
  await sendCommand(WaitForCondition(const NoTransientCallbacks(), timeout: timeout));