MapTransformExtensions<K, V> extension

on

Methods

filterKeys(bool test(K key)) Map<K, V>

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

Keeps only entries with keys satisfying test.
filterValues(bool test(V value)) Map<K, V>

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

Keeps only entries with values satisfying test.
getBoolOrNull(Object? key) bool?

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

getDoubleOrNull(Object? key) double?

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

getIntOrNull(Object? key) int?

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

getString(Object? key) String?

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

mapKeys<K2>(K2 transform(K key, V value)) Map<K2, V>

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

Returns a new map with transformed keys.
mapValues<V2>(V2 transform(K key, V value)) Map<K, V2>

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

Returns a new map with transformed values.