setCommandEnabled method

void setCommandEnabled(
  1. String command,
  2. bool enabled
)

enable or disable a named command command the command name enabled the enabled status

Implementation

void setCommandEnabled(String command, bool enabled) {
  getCommand(command).enabled = enabled;
}