containsKey method

bool containsKey(
  1. String key
)

Checks if the set contains a permission with the given key.

Implementation

bool containsKey(String key) {
  return any((entry) => entry.key == key);
}