DeepCollectionEquality.unordered constructor Null safety

const DeepCollectionEquality.unordered(
  1. [Equality base = const DefaultEquality<Never>()]
)

Creates a deep equality on collections where the order of lists and iterables are not considered important. That is, lists and iterables are treated as unordered iterables.

Implementation

const DeepCollectionEquality.unordered(
    [Equality base = const DefaultEquality<Never>()])
    : _base = base,
      _unordered = true;