apply method Null safety

  1. @override
Iterable<Element> apply(
  1. Iterable<Element> candidates
)
override

Returns all the elements in the given list that match this finder's pattern.

When implementing your own Finders that inherit directly from Finder, this is the main method to override. If your finder can efficiently be described just in terms of a predicate function, consider extending MatchFinder instead.

Implementation

@override
Iterable<Element> apply(Iterable<Element> candidates) {
  return filter(parent.apply(candidates));
}