role property

String get role

"role" value; defaults to "user".

Implementation

String get role {
  for (final g in grants) {
    if (g.name == 'role' && g.scope is String && g.scope != 'user') {
      return g.scope as String;
    }
  }
  return 'user';
}