commandIsScheduled method
Returns a boolean indicating whether command is scheduled.
This is different from commandIsRunning, as command may be scheduled,
but may not run if stopCommand has been called.
Implementation
bool commandIsScheduled(final VoidCallback command) =>
_timers[_getCommandIndex(command)] != null;