isAbsent method

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

Implementation

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