hasElement method

bool hasElement(
  1. String elementName
)

Recursively checks all nested elements and returns true if one is found named elementName.

elementName must not be null or empty.

Implementation

bool hasElement(String elementName) {
  assert(elementName.isNotEmpty);
  return hasElementWhere(name: elementName);
}