toggle method

Cmd toggle()

Creates a command to toggle the stopwatch on/off.

Implementation

Cmd toggle() {
  if (_running) {
    return stop();
  }
  return start();
}