apply method

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

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

When implementing Finders that inherit directly from Finder, findInCandidates is the main method to override. This method is maintained for backwards compatibility and will be removed in a future version of Flutter. If the finder can efficiently be described just in terms of a predicate function, consider mixing in MatchFinderMixin instead.

Implementation

@override
Iterable<Element> apply(Iterable<Element> candidates) =>
    _finder.apply(candidates);