togglePause method

void togglePause()

Implementation

void togglePause() {
  isPaused.value = !isPaused.value;
}