hashCode property

  1. @override
int hashCode
override

Deep hashCode.

A BuiltMap is only equal to another BuiltMap with equal key/value pairs in any order. Then, the hashCode is guaranteed to be the same.

Implementation

@override
int get hashCode {
  _hashCode ??= hashObjects(_map.keys
      .map((key) => hash2(key.hashCode, _map[key].hashCode))
      .toList(growable: false)
        ..sort());
  return _hashCode!;
}