stopCommands method

void stopCommands(
  1. int timeDelta
)

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!;
  });
}