unregisterCommand method
Unregisters a command which has previously been registered with
registerCommand.
Implementation
void unregisterCommand(final VoidCallback command) {
final index = _getCommandIndex(command);
_commands.removeAt(index);
_intervals.removeAt(index);
_running.removeAt(index);
_timers.removeAt(index)?.cancel();
}