registerSubCommand method Null safety

void registerSubCommand (
  1. String name,
  2. CommandHandlerFunction commandHandler,
  3. {PassHandlerFunction? beforeHandler,
  4. AfterHandlerFunction? afterHandler}
)

Registers subcommand

Implementation

void registerSubCommand(String name, CommandHandlerFunction commandHandler,
    {PassHandlerFunction? beforeHandler, AfterHandlerFunction? afterHandler}) {
  this.registerCommandEntity(BasicCommandHandler(name, commandHandler, beforeHandler: beforeHandler, afterHandler: afterHandler, parent: this));
}