covers method

bool covers(
  1. Iterable<String> kinds
)

Whether this scope admits every target of the given kinds: any id, and each of the kinds. An operation that reaches a whole resource rather than the targets it names is admitted only under such a scope.

Implementation

bool covers(Iterable<String> kinds) =>
    allowedIds == null &&
    (allowedKinds == null || allowedKinds!.containsAll(kinds));