SetMultimapBuilder<K, V> class

The Built Collection builder for BuiltSetMultimap.

It implements the mutating part of the SetMultimap interface.

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

Constructors

SetMultimapBuilder([dynamic multimap = const {}])
Instantiates with elements from a Map, SetMultimap or BuiltSetMultimap. [...]
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(K key, V value) → void
As SetMultimap.add.
addAll(SetMultimap<K, V> other) → void
As SetMultimap.addAll.
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 SetMultimap.addValues.
build() BuiltSetMultimap<K, V>
Converts to a BuiltSetMultimap. [...]
clear() → void
As SetMultimap.clear.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(Object key, V value) → void
As SetMultimap.remove but returns nothing.
removeAll(Object key) → void
As SetMultimap.removeAll but returns nothing.
replace(dynamic multimap) → void
Replaces all elements with elements from a Map, SetMultimap or BuiltSetMultimap.
toString() String
A string representation of this object. [...]
inherited
update(dynamic updates(SetMultimapBuilder<K, V>)) → void
Applies a function to this.

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited