thisOrAncestorMatching<E extends Element> abstract method
- @Deprecated('Use Element2.thisOrAncestorMatching2() instead')
Returns either this element or the most immediate ancestor of this element
for which the predicate
returns true
, or null
if there is no such
element.
Implementation
@Deprecated('Use Element2.thisOrAncestorMatching2() instead')
E? thisOrAncestorMatching<E extends Element>(
bool Function(Element) predicate,
);