findInCandidates method
- Iterable<
CandidateType> candidates
override
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<CandidateType> findInCandidates(Iterable<CandidateType> candidates) {
return candidates.where(matches);
}