empty<K, V> static method

IMapOfSets<K, V> empty<K, V>([
  1. ConfigMapOfSets? config
])

Returns an empty IMapOfSets, with the given configuration. If a configuration is not provided, it will use the default configuration.

Note: If you want to create an empty immutable collection of the same type and same configuration as a source collection, simply call clear in the source collection.

Implementation

static IMapOfSets<K, V> empty<K, V>([ConfigMapOfSets? config]) {
  config ??= defaultConfig;
  return IMapOfSets<K, V>._unsafe(IMap.empty(config.asConfigMap), config);
}