_tools/utils/map
library
Functions
-
filterMap<K, V>(Map<K, V> map, bool predicate(K key, V value))
→ Map<K, V>
-
Filters key-value pairs in a Map
-
fromPairs<K extends String, V>(List<MapEntry<K, V>> entries)
→ Map<K, V>
-
Converts a list of key-value pairs to a Map
-
mapKeys<K1, K2, V>(Map<K1, V> map, K2 transform(K1 key))
→ Map<K2, V>
-
Transforms keys in a Map
-
mapValues<K, V1, V2>(Map<K, V1> map, V2 transform(V1 value))
→ Map<K, V2>
-
Transforms values in a Map
-
toPairs<K extends String, V>(Map<K, V> map)
→ List<MapEntry<K, V>>
-
Converts a Map to a list of key-value pairs