ObjMapExt<K, V> extension

on

Properties

entries Iterable<MapEntry<K, V>>

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

The map entries of this.
no setter
isEmpty bool

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Whether there is no key/value pair in the map.
no setter
isNotEmpty bool

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Whether there is at least one key/value pair in the map.
no setter
keys Iterable<K>

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

The keys of this.
no setter
length int

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

The number of key/value pairs in the map.
no setter
values Iterable<V>

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

The values of this.
no setter

Methods

addAll(Map<K, V> other) → void

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Adds all key/value pairs of other to this map.
addEntries(Iterable<MapEntry<K, V>> newEntries) → void

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Adds all key/value pairs of newEntries to this map.
cast<RK, RV>() Map<RK, RV>

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Provides a view of this map as having RK keys and RV instances, if necessary.
clear() → void

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Removes all entries from the map.
containsKey(Object? key) bool

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Whether this map contains the given key.
containsValue(Object? valueToEvaluate) bool

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Whether this map contains the given value.
forEach(void action(K key, V value)) → void

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Applies action to each key/value pair of the map.
map<K2, V2>(MapEntry<K2, V2> convert(K key, V value)) Map<K2, V2>

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Returns a new map where all entries of this map are transformed by the given convert function.
putIfAbsent(K key, V ifAbsent()) → V

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Look up the value of key, or add a new entry if it isn't there.
remove(Object? key) → V?

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Removes key and its associated value, if present, from the map.
removeWhere(bool test(K key, V value)) → void

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Removes all entries of this map that satisfy the given test.
updateAll(V update(K key, V value)) → void

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Updates all values.
updateMap(K key, V update(V value), {V ifAbsent()?}) → V

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Updates the value for the provided key.

Operators

operator [](Object? key) → V?

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

The value for the given key, or null if key is not in the map.
operator []=(K key, V valueToSet) → void

Available on Obj<Map<K, V>>, provided by the ObjMapExt extension

Associates the key with the given value.