allKeysWithValue method
Returns a Set of the keys which contain value
.
Implementation
Set<K> allKeysWithValue(V value) {
final Set<K> keysWithValue = {};
for (final MapEntry<K, ISet<V>> entry in _mapOfSets.entries) {
final set = entry.value;
if (set.contains(value)) keysWithValue.add(entry.key);
}
return keysWithValue;
}