exists property

  1. @override
bool get exists
override

Whether this element exists on the page.

Implementation

@override
bool get exists {
  final count = elements.length;
  if (count == 1) {
    return true;
  } else if (count == 0) {
    return false;
  }
  throw PageLoaderException('Found $count elements on call to exists', this);
}