BuiltListMultimap<K, V> class

The Built Collection ListMultimap.

It implements the non-mutating part of the ListMultimap interface. Iteration over keys is in the same order in which they were inserted. Modifications are made via ListMultimapBuilder.

See the Built Collection library documentation (#built_collection/built_collection) for the general properties of Built Collections.

Constructors

BuiltListMultimap([dynamic multimap = const {}])
Instantiates with elements from a Map, ListMultimap or BuiltListMultimap. [...]
factory
BuiltListMultimap.build(dynamic updates(ListMultimapBuilder<K, V>))
Creates a ListMultimapBuilder, applies updates to it, and builds.
factory

Properties

hashCode int
Deep hashCode. [...]
read-only, override
isEmpty bool
As ListMultimap.isEmpty.
read-only
isNotEmpty bool
As ListMultimap.isNotEmpty.
read-only
keys Iterable<K>
As ListMultimap.keys, but result is stable; it always returns the same instance.
read-only
length int
As ListMultimap.length.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
values Iterable<V>
As ListMultimap.values, but result is stable; it always returns the same instance.
read-only

Methods

asMap() Map<K, Iterable<V>>
Returns as an immutable map. [...]
containsKey(Object key) bool
As ListMultimap.containsKey.
containsValue(Object value) bool
As ListMultimap.containsValue.
forEach(void f(K, V)) → void
As ListMultimap.forEach.
forEachKey(void f(K, Iterable<V>)) → void
As ListMultimap.forEachKey.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
rebuild(dynamic updates(ListMultimapBuilder<K, V>)) BuiltListMultimap<K, V>
Converts to a ListMultimapBuilder, applies updates to it, and builds.
toBuilder() ListMultimapBuilder<K, V>
Converts to a ListMultimapBuilder for modification. [...]
toMap() Map<K, BuiltList<V>>
Converts to a Map. [...]
toString() String
A string representation of this object. [...]
override

Operators

operator ==(dynamic other) bool
Deep equality. [...]
override
operator [](Object key) BuiltList<V>
As ListMultimap, but results are BuiltLists and not mutable.