getCommandNextRun method

NextRun<Command>? getCommandNextRun(
  1. Command command
)

Get the next run value for the given command.

Implementation

NextRun<Command>? getCommandNextRun(final Command command) {
  for (final nextRun in commandNextRuns) {
    if (nextRun.value == command) {
      return nextRun;
    }
  }
  return null;
}