startTimer method

void startTimer()

Implementation

void startTimer() {
  try {
    if (timer!.isActive) {
      cancelTimer();
    }
  } catch (error) {
    Log("ViewAbilityApi").i(error.toString());
  }
  timer = Timer.periodic(const Duration(seconds: 1), (Timer t) => updateClock());
}