HashMap<K, V>.of constructor
Null safety
- 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);
Creates a HashMap that contains all key/value pairs of other
.
factory HashMap.of(Map<K, V> other) => HashMap<K, V>()..addAll(other);