startFlankerTimer method

void startFlankerTimer()

Implementation

void startFlankerTimer() {
  const oneSec = Duration(milliseconds: 1);
  flankerTimer = Timer.periodic(
    oneSec,
    (Timer timer) => setState(
      () {
        if (flankerSeconds < 0) {
          flankerTimer?.cancel();
        } else {
          flankerSeconds = flankerSeconds + 1;
        }
      },
    ),
  );
}