GateAccessChecked class
Fired when an ability check is performed (allowed or denied).
- Inheritance
-
- Object
- MagicEvent
- GateAccessChecked
Constructors
- GateAccessChecked({required String ability, dynamic arguments, required bool allowed, Model? user})
Properties
- ability → String
-
The ability that was checked.
final
- allowed → bool
-
Whether access was granted.
final
- arguments → dynamic
-
The arguments passed to the check.
final
- denied → bool
-
Whether access was denied.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → Model?
-
The user who performed the check (null if guest).
final
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