How can we restart the CountdownTimer
how can we restart the timer in between time counting? I mean is it possible to restart the timer.
Update endTime.
setState(() {
endTime = DateTime.now().millisecondsSinceEpoch + 1000 * 30;
});
Thanks now it's working.
it's not working in Bottomsheet. I have checked the Get.bottomSheet(). and showModalBottomSheet().
May I have a look at your code?Minimum runnable code that does not work.
@wuweijian1997 it cannot be restarted if it has ended, because it gets disposed, could we maybe add a property whether or not to dispose when it ends? that will allow us to restart the timer once it has ended (and yes dispose in that case should be manual).