Gate class abstract final

Authorization (Gate::allows, Gate::authorize).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

gate → AuthorizationGate
no setter

Static Methods

after(GateAfterHook hook) → void
allows(String ability, [List<Object?> args = const []]) → Future<bool>
any(Iterable<String> abilities, [List<Object?> args = const []]) → Future<bool>
authorize(String ability, [List<Object?> args = const []]) → Future<AuthResponse>
before(GateBeforeHook hook) → void
check(Iterable<String> abilities, [List<Object?> args = const []]) → Future<bool>
define(String ability, GateCallback callback) → void
denies(String ability, [List<Object?> args = const []]) → Future<bool>
forUser(Authenticatable? user) → AuthorizationGate
has(String ability) → bool
inspect(String ability, [List<Object?> args = const []]) → Future<AuthResponse>
none(Iterable<String> abilities, [List<Object?> args = const []]) → Future<bool>
policy<T extends Object>(Policy<T> policy) → void