CommandHandler constructor Null safety

CommandHandler(
  1. String name,
  2. CommandHandlerFunction commandHandler,
  3. {List<String> aliases = const [],
  4. PassHandlerFunction? beforeHandler,
  5. AfterHandlerFunction? afterHandler,
  6. BasicCommandGroup? parent}
)

Basic implementation of command handler. Used internally in library.

Implementation

CommandHandler(this.name, this.commandHandler, {this.aliases = const [], this.beforeHandler, this.afterHandler, this.parent});