isPresent method

  1. @override
Future<bool> isPresent(
  1. SerializableFinder finder, {
  2. 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;
  }
}