registerCommand abstract method
void
registerCommand(
- String commandName,
- CommandHandlerFunction commandHandler, {
- PassHandlerFunction? beforeHandler,
- AfterHandlerFunction? afterHandler,
Registers command with given commandName
. Allows to specify command specific before and after command execution callbacks
Implementation
void registerCommand(String commandName, CommandHandlerFunction commandHandler, {PassHandlerFunction? beforeHandler, AfterHandlerFunction? afterHandler});