toggleSimulation method

void toggleSimulation()

Implementation

void toggleSimulation() {
  isRunning.value = !isRunning.value;
}