TAuthController constructor
TAuthController({
- Iterable<
String> ? permissions, - TPermissionGranter? granter,
- TAuthConfig config = const TAuthConfig(),
- bool loading = false,
With no permissions and no granter the controller is unconfigured
and allows everything. Once a list is supplied (even an empty one), any
permission not in it is denied.
Implementation
TAuthController({Iterable<String>? permissions, TPermissionGranter? granter, this.config = const TAuthConfig(), bool loading = false})
: _granter = granter ?? (permissions == null ? null : TPermissionSet(permissions)),
_loading = loading;