pairwiseCompare<S, T> function Null safety

Matcher pairwiseCompare<S, T>(
  1. Iterable<S> expected,
  2. bool comparator(
    1. S,
    2. T
    ),
  3. String description
)

A pairwise matcher for Iterables.

The comparator function, taking an expected and an actual argument, and returning whether they match, will be applied to each pair in order. description should be a meaningful name for the comparator.

Implementation

Matcher pairwiseCompare<S, T>(Iterable<S> expected,
        bool Function(S, T) comparator, String description) =>
    _PairwiseCompare(expected, comparator, description);