I'm new to programming and flutter and I just got stuck with this.
I want to build a metronome that can accelerate at fixed intervals. For example, every 5 seconds the timer gets faster by 10 beats per minute.
I coded the basic metronome using Timer.periodic; now, I thought that using a new Timer.periodic to accelerate the previous timer every 5 seconds could work, and actually I don't know if it does.
If I cancel the previous instance of the timer, modify the duration, and start a new timer, I can hear the gap and then it's asynchronous. Is there an easier way to modify it while it's still running? Or is there some other way?