toggle method
Creates a command to toggle the timer on/off.
Implementation
Cmd toggle() {
if (_running) {
return stop();
}
return start();
}
Creates a command to toggle the timer on/off.
Cmd toggle() {
if (_running) {
return stop();
}
return start();
}