HashMap<K, V>.of constructor

HashMap<K, V>.of(Map<K, V> other)

Creates a HashMap that contains all key/value pairs of other.

Implementation

factory HashMap.of(Map<K, V> other) => HashMap<K, V>()..addAll(other);