Multimap<K, V>.fromIterable constructor

Multimap<K, V>.fromIterable(Iterable iterable, { K key(dynamic element), V value(dynamic element) })

Constructs a new list-backed multimap. For each element e of iterable, adds an association from key to value. key and value each default to the identity function.

Implementation

factory Multimap.fromIterable(Iterable iterable,
    {K key(element), V value(element)}) = ListMultimap<K, V>.fromIterable;