stopCommands method
Remove any commands from the stoppedCommands list that can now be ran again.
Implementation
void stopCommands(final int timeDelta) {
stoppedCommands.removeWhere((final element) {
element.runAfter += timeDelta;
return element.runAfter >= element.value.interval!;
});
}