thisOrAncestorMatching abstract method
Returns either this element or the most immediate ancestor of this element
for which the predicate returns true.
Returns null if there is no such element.
Implementation
Element? thisOrAncestorMatching(bool Function(Element) predicate);