team static method
Grants access to a team by team ID.
You can optionally pass a role for role
to target
team members with the specified role.
Implementation
static String team(String id, [String role = '']) {
if (role.isEmpty) {
return 'team:$id';
}
return 'team:$id/$role';
}