MapUtils<K, V> extension
Null safety
- on
-
- Map<
K, V>
- Map<
Methods
-
containsDuplicateValues(
) → bool - Checks if a map contains duplicate values in its values by using sets
-
equals(
Object other) → bool -
swap(
) → Map< V, K> - Returns a map with the keys and values swapped. If there are duplicate keys the function throws an argument error (So use with containsDuplicateValues()).
-
where(
BoolFunctionMap func) → Map< K, V> - Works like List.where, you put in a function that takes a MapEntry and returns a bool. This will return new Map where the above function is true.