thisOrAncestorMatching2 abstract method

  1. @Deprecated('Use thisOrAncestorMatching instead')
Element? thisOrAncestorMatching2(
  1. bool predicate(
    1. Element
    )
)

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

@Deprecated('Use thisOrAncestorMatching instead')
Element? thisOrAncestorMatching2(bool Function(Element) predicate);