AuthStateRule constructor

const AuthStateRule({
  1. bool? requireAuthenticated,
  2. Set<String> anyRoles = const {},
  3. Set<String> allRoles = const {},
})

Creates an auth-state rule.

Implementation

const AuthStateRule({
  this.requireAuthenticated,
  this.anyRoles = const {},
  this.allRoles = const {},
});