mapContainsValue<K, V> static method
Checks if a map of lists contains a specific value.
Implementation
static bool mapContainsValue<K, V>(Map<K, List<V>> map, K key, V value) {
if (value == null) return false;
return map[key]?.contains(value) ?? false;
}