AuthGateRegistry<TContext> class
Registry for gate callbacks keyed by ability.
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
String ability, AuthGateCallback< TContext> callback, {bool overrideExisting = true}) → void -
Registers a gate callback for
ability. -
registerAll(
Map< String, AuthGateCallback< entries, {bool overrideExisting = true}) → voidTContext> > - Registers multiple gate callbacks.
-
resolve(
String ability) → AuthGateCallback< TContext> ? -
Resolves callback for
ability. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
String ability) → void -
Unregisters
ability.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited