HashMap<K, V>.identity constructor Null safety

HashMap<K, V>.identity()

Creates an unordered identity-based map.

Effectively a shorthand for:

HashMap<K, V>(equals: identical, hashCode: identityHashCode)

Implementation

external factory HashMap.identity();