pollTimer method

void pollTimer()

Implementation

void pollTimer(){

    _timer = Timer.periodic(Duration(seconds: 1), (timer) {
      if (timeRemaining.value > 0) {
        timeRemaining.value--;
      } else {
        _timer.cancel(); // Stop the timer when time is up
        if(isAnswerDialogOpen.value){
          Get.back();
        }

      }
    });

}