It's a getter that returns the list of commands that were used to get to the current state.
List<String> get getCommands => _commands;