GateBeforeHook typedef
GateBeforeHook =
FutureOr<Object?> Function(Authenticatable? user, String ability, List<Object?> args)
before hook: a non-null result short-circuits the check.
Implementation
typedef GateBeforeHook = FutureOr<Object?> Function(
Authenticatable? user,
String ability,
List<Object?> args,
);