ListMultimap<K, V> constructor

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

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

Implementation

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