anyOf function Null safety

Matcher anyOf(
  1. dynamic arg0,
  2. [dynamic arg1,
  3. dynamic arg2,
  4. dynamic arg3,
  5. dynamic arg4,
  6. dynamic arg5,
  7. dynamic arg6]

Matches if any of the given matchers evaluate to true.

The arguments can be a set of matchers as separate parameters (up to 7), or a List of matchers.

The matchers are evaluated from left to right using short-circuit evaluation, so evaluation stops as soon as a matcher returns true.

Any argument that is not a matcher is implicitly wrapped in a Matcher to check for equality.


Matcher anyOf(arg0, [arg1, arg2, arg3, arg4, arg5, arg6]) {
  return _AnyOf(_wrapArgs(arg0, arg1, arg2, arg3, arg4, arg5, arg6));