stopCommand method

bool stopCommand(
  1. VoidCallback command
)

Stop command.

This method will not cancel the timer for command. It only ensures it won't run again this interval.

Returns true if successful.

Implementation

bool stopCommand(final VoidCallback command) {
  if (commandIsRunning(command)) {
    _running[_getCommandIndex(command)] = false;
    return true;
  }
  return false;
}