hash method

*<Null safety>*
  • @override

int hash (Object? o) override

Implementation

@override
int hash(Object? o) {
  if (o is Set) return SetEquality(this).hash(o);
  if (o is Map) return MapEquality(keys: this, values: this).hash(o);
  if (!_unordered) {
    if (o is List) return ListEquality(this).hash(o);
    if (o is Iterable) return IterableEquality(this).hash(o);
  } else if (o is Iterable) {
    return UnorderedIterableEquality(this).hash(o);
  }
  return _base.hash(o);
}