MapCorextension<K, V> extension
Properties
-
isSingle
→ bool
-
Returns
true
if there's precisely one key/value pair in the map.
read-only
Methods
-
expand<RK, RV>(Map<RK, RV> f(K key, V value))
→ Map<RK, RV>
-
Expands a
Map
by iterating over every entry and replacing it with another Map
. [...]
-
firstEntryWhere(bool f(K key, V value), {MapEntry<K, V> orElse()})
→ MapEntry<K, V>
-
Returns the first entry that satisfies the predicate. [...]
-
firstKeyWhere(bool f(K key, V value), {K orElse()})
→ K
-
Returns the first key that satisfies the predicate. [...]
-
firstValueWhere(bool f(K key, V value), {V orElse()})
→ V
-
Returns the first value that satisfies the predicate. [...]
-
reverse()
→ Map<V, K>
-
Returns the map where the keys and values within
this
are returned. [...]
-
singleEntryWhere(bool f(K key, V value), {MapEntry<K, V> orElse()})
→ MapEntry<K, V>
-
Returns the single entry that satisfies the predicate. [...]
-
singleKeyWhere(bool f(K key, V value), {K orElse()})
→ K
-
Returns the single key that satisfies the predicate. [...]
-
singleValueWhere(bool f(K key, V value), {V orElse()})
→ V
-
Returns the single value that satisfies the predicate. [...]