isAuthorizedForScope method

bool isAuthorizedForScope(
  1. String scope
)

Whether or not this instance has access to a specific scope.

This method checks each element in scopes for any that gives privileges to access scope.

Implementation

bool isAuthorizedForScope(String scope) {
  final asScope = AuthScope(scope);
  return scopes!.any(asScope.isSubsetOrEqualTo);
}