AuthStateRule.hasRole constructor

AuthStateRule.hasRole(
  1. String role
)

Matches callers holding role.

Implementation

AuthStateRule.hasRole(String role)
  : this(requireAuthenticated: true, allRoles: {role});