turn on timer function for 5 seconds everyday at 10 am in flutter code example
Example: repeating action every x seconds flutter
Timer timer;
@override
void initState() {
super.initState();
timer = Timer.periodic(Duration(seconds: 15), (Timer t) => checkForNewSharedLists());
}
@override
void dispose() {
timer?.cancel();
super.dispose();
}