toListMultimap<K, V> method
Observable<ListMultimap<K, V> >
toListMultimap<K, V>({
- Map0<
ListMultimap< ? constructor,K, V> > - Map1<
T, K> ? keySelector, - Map1<
T, V> ? valueSelector,
Returns a ListMultimap
from an observable sequence.
Implementation
Observable<ListMultimap<K, V>> toListMultimap<K, V>(
{Map0<ListMultimap<K, V>>? constructor,
Map1<T, K>? keySelector,
Map1<T, V>? valueSelector}) =>
ToMapObservable<T, ListMultimap<K, V>, K, V>(
this,
constructor ?? ListMultimap<K, V>.new,
keySelector ?? (value) => value as K,
valueSelector ?? (value) => value as V,
(map, key, value) => map.add(key, value));