With geolocator package you have the possibility to listen to position streaming, as detailed here, so you don't have to implement it on your own. It is quite simple to add a listener that get's called when user location changes, like this:
download my stream timer
I'm trying to set up a timer/stream that checks DateTime and as soon as the day shifts over, it calls a function (_startDayChange()). It all works, but for one problem:No matter where I start the Timer/Stream from, sooner or later it gets calles a second/third/fourth time and I have multiple timers/streams running all doing the same thing. Here is one code snippet from one of my many attempts:
35fe9a5643