apply method

  1. @Deprecated('Override FinderBase.findInCandidates instead. ' 'Using the FinderBase API allows for more consistent caching behavior and cleaner options for interacting with the widget tree. ' 'This feature was deprecated after v3.13.0-0.2.pre.')
Iterable<Element> apply(
  1. Iterable<Element> candidates
)
inherited

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

@Deprecated(
  'Override FinderBase.findInCandidates instead. '
  'Using the FinderBase API allows for more consistent caching behavior and cleaner options for interacting with the widget tree. '
  'This feature was deprecated after v3.13.0-0.2.pre.'
)
Iterable<Element> apply(Iterable<Element> candidates) {
  return findInCandidates(candidates);
}