Matcher unorderedEquals(Iterable expected)

Returns a matcher which matches Iterables that have the same length and the same elements as expected, but not necessarily in the same order.

Note that this is O(n^2) so should only be used on small objects.

Source

Matcher unorderedEquals(Iterable expected) => new _UnorderedEquals(expected);