Checks if the set contains a permission with the given key.
key
bool containsKey(String key) { return any((entry) => entry.key == key); }