allKeysWithValue method

Set<K> allKeysWithValue(
  1. V value
)

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;
}