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