PassHandlerFunction typedef Null safety

PassHandlerFunction = FutureOr<bool> Function(ICommandContext context)

Used to determine if command can be executed in given environment. Return true to allow executing command or false otherwise.

Implementation

typedef PassHandlerFunction = FutureOr<bool> Function(ICommandContext context);