waitForFlutter method

Future<bool> waitForFlutter(
  1. FlutterDriver driver,
  2. {Duration timeout = const Duration(seconds: 30)}
)

Implementation

static Future<bool> waitForFlutter(
  FlutterDriver driver, {
  Duration timeout = const Duration(seconds: 30),
}) async {
  try {
    await driver.waitUntilNoTransientCallbacks(timeout: timeout);
    return true;
  } catch (_) {
    return false;
  }
}