anyElement function Null safety

Matcher anyElement(
  1. Object? valueOrMatcher
)

Returns a matcher which matches Iterables in which at least one element matches the given valueOrMatcher.

Implementation

Matcher anyElement(Object? valueOrMatcher) =>
    _AnyElement(wrapMatcher(valueOrMatcher));