approveCommand method
dynamic
approveCommand()
Implementation
approveCommand() async {
if (currentCommand.value + 1 >= _commands.length) {
_onFinish(true, null);
await _clearResource();
} else {
currentCommand.value += 1;
}
isWaitNextCommand.value = true;
Timer(const Duration(seconds: 2), () => isWaitNextCommand.value = false);
}