HashMap<K, V>.of constructor
- 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);