isPresent static method
Future<bool>
isPresent(
- FlutterDriver? driver,
- SerializableFinder finder, {
- Duration timeout = const Duration(seconds: 1),
Implementation
static Future<bool> isPresent(
FlutterDriver? driver,
SerializableFinder finder, {
Duration timeout = const Duration(seconds: 1),
}) async {
try {
await driver?.waitFor(finder, timeout: timeout);
return true;
} catch (_) {
return false;
}
}