IMap<K, V>.withConfig constructor

IMap<K, V>.withConfig(
  1. Map<K, V>? map,
  2. ConfigMap config
)

Create an IMap from a Map and a ConfigMap.

Implementation

factory IMap.withConfig(
  Map<K, V>? map,
  ConfigMap config,
) {
  return (map == null || map.isEmpty)
      ? IMap.empty<K, V>(config)
      : IMap<K, V>._unsafe(MFlat<K, V>(map, config: config), config: config);
}