void updateClock()

in lib/src/game_manager.dart [49:56]


  void updateClock() {
    if (_clockTimer == null && _game.state == GameState.started) {
      _clockTimer = Timer(const Duration(seconds: 1), updateClock);
    } else if (_clockTimer != null && _game.state != GameState.started) {
      _clockTimer!.cancel();
      _clockTimer = null;
    }
  }