add static method

void add(
  1. String command
)

Implementation

static void add(String command) {
  final commands = load();
  if (commands.add(command)) {
    save(commands);
  }
}