TAuthConfig class

Library-wide defaults for how denied permissions are handled.

Constructors

TAuthConfig({TAuthMode defaultDeniedMode = TAuthMode.disable, Map<TAuthTarget, TAuthMode> targetModes = const {TAuthTarget.sidebarItem : TAuthMode.hide, TAuthTarget.tab : TAuthMode.hide, TAuthTarget.bottomBar : TAuthMode.hide, TAuthTarget.navBar : TAuthMode.hide}, bool failClosedWhileLoading = true})
const

Properties

defaultDeniedMode → TAuthMode
Mode used when nothing more specific applies.
final
failClosedWhileLoading → bool
Treat permissions as denied while the controller is TAuthController.loading.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetModes → Map<TAuthTarget, TAuthMode>
Per widget-kind defaults, e.g. {TAuthTarget.sidebarItem: TAuthMode.hide}.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(TAuthTarget target, TAuthMode? override) → TAuthMode
Resolves the denied mode: widget override > target default > global default.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited