allKeysWithValue method

Set<K> allKeysWithValue(
  1. V value
)

Returns a Set of the keys which contain value.

Implementation

Set<K> allKeysWithValue(V value) {
  Set<K> keysWithValue = {};
  for (MapEntry<K, ISet<V>> entry in _mapOfSets.entries) {
    var set = entry.value;
    if (set.contains(value)) keysWithValue.add(entry.key);
  }
  return keysWithValue;
}