allOf function Null safety

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

This returns a matcher that matches if all of the matchers passed as arguments (up to 7) match.

Instead of passing the matchers separately they can be passed as a single List argument. Any argument that is not a matcher is implicitly wrapped in a Matcher to check for equality.


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