findInCandidates method

  1. @override
Iterable<Element> findInCandidates(
  1. Iterable<Element> candidates
)
inherited

Returns all the items in the given list that match this finder's requirements.

This is overridden to define the requirements of the finder when implementing finders that directly extend FinderBase. If a finder can be efficiently described just in terms of a predicate function, consider mixing in MatchFinderMixin and implementing MatchFinderMixin.matches instead.

Implementation

@override
Iterable<Element> findInCandidates(Iterable<Element> candidates) {
  return apply(candidates);
}