hasValue method
Checks if the given value
exists in the map.
Returns true if any of the values in the map are equal to value
.
Example:
map.hasValue("value") // true
Implementation
bool hasValue(T value) => any(
(T element) {
if (element is! Map<T, T>) {
return false;
}
return element.containsValue(value);
},
);