toSetMultimap method

SetMultimap<K, V> toSetMultimap({
  1. Map<K, Set<V>>? map,
  2. Factory<Set<V>>? factory,
})

Converts this Map to an equivalent SetMultimap.

Implementation

SetMultimap<K, V> toSetMultimap(
        {Map<K, Set<V>>? map, Factory<Set<V>>? factory}) =>
    SetMultimap<K, V>.fromEntries(entries, map: map, factory: factory);