getByCategory method

List<CommandRegistration> getByCategory(
  1. CommandCategory category
)

Get all commands in a specific category.

Implementation

List<CommandRegistration> getByCategory(CommandCategory category) =>
    _commands.where((r) => r.category == category).toList();