SetMultimap<K, V> constructor

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

Creates an empty SetMultimap with the keys held in map and the values in a collection built with factory.

Implementation

SetMultimap({Map<K, Set<V>>? map, Factory<Set<V>>? factory})
    : super(map ?? <K, Set<V>>{}, factory ?? defaultFactory);