Map<K, V>.identity constructor

Map<K, V>.identity()

Creates an identity map with the default implementation, LinkedHashMap.

The returned map allows null as a key. It iterates in key insertion order.

Implementation

factory Map.identity() = LinkedHashMap<K, V>.identity;