registerAll method
void
registerAll(
- Iterable<
Command> commands, { - CommandCategory category = CommandCategory.system,
Register multiple commands with the same category.
Implementation
void registerAll(
Iterable<Command> commands, {
CommandCategory category = CommandCategory.system,
}) {
for (final cmd in commands) {
register(cmd, category: category);
}
}