ListMultimapBuilder<K, V> class

The Built Collection builder for BuiltListMultimap.

It implements the mutating part of the ListMultimap interface.

See the Built Collection library documentation for the general properties of Built Collections.

Constructors

ListMultimapBuilder([dynamic multimap = const {}])
Instantiates with elements from a Map, ListMultimap or BuiltListMultimap.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(K key, V value) → void
As ListMultimap.add.
addIterable<T>(Iterable<T> iterable, {K key(T)?, V value(T)?, Iterable<V> values(T)?}) → void
As Map.fromIterable but adds.
addValues(K key, Iterable<V> values) → void
As ListMultimap.addValues.
build() BuiltListMultimap<K, V>
Converts to a BuiltListMultimap.
clear() → void
As ListMultimap.clear.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(Object? key, V? value) bool
As ListMultimap.remove.
removeAll(Object? key) BuiltList<V>
As ListMultimap.removeAll, but results are BuiltLists.
replace(dynamic multimap) → void
Replaces all elements with elements from a Map, ListMultimap or BuiltListMultimap.
toString() String
A string representation of this object.
inherited
update(dynamic updates(ListMultimapBuilder<K, V>)) → void
Applies a function to this.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? key) ListBuilder<V>
As ListMultimap, but results are ListBuilders.