IMap<K, V>.fromEntries constructor
Create an IMap from an Iterable of MapEntry.
If multiple entries
have the same key
,
later occurrences overwrite the earlier ones.
Implementation
factory IMap.fromEntries(Iterable<MapEntry<K, V>> entries, {ConfigMap? config}) {
config ??= defaultConfig;
Map<K, V> map = ListMap.fromEntries(
entries,
sort: config.sort,
);
return IMap._(map, config: config);
}