allOf function Null safety

Matcher allOf(
  1. Object? arg0,
  2. [Object? arg1,
  3. Object? arg2,
  4. Object? arg3,
  5. Object? arg4,
  6. Object? arg5,
  7. Object? 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.

Implementation

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