Map<K, V>.fromEntries constructor
Null safety
Creates a new map and adds all entries.
Returns a new Map<K, V>
where all entries of entries
have been added in iteration order.
If multiple entries
have the same key,
later occurrences overwrite the value of the earlier ones.
Equivalent to the map literal:
<K, V>{for (var e in entries) e.key: e.value}
Implementation
factory Map.fromEntries(Iterable<MapEntry<K, V>> entries) =>
<K, V>{}..addEntries(entries);