scopes property

Set<Scope> get scopes

Returns a set containing the scopes this user has access to.

Implementation

Set<Scope> get scopes {
  var set = <Scope>{};
  for (var scopeStr in scopeNames) {
    set.add(Scope(scopeStr));
  }
  return set;
}