bool allowsScope(AuthScope scope)

Whether or not this client can issue tokens for the provided scope.

Source

bool allowsScope(AuthScope scope) {
  return allowedScopes?.any((clientScope) => scope.isSubsetOrEqualTo(clientScope)) ?? false;
}