Answers for "how to call a function every minute in flutter"

0

how to call a function every minute in flutter

Timer timer;

@override
void initState() {
  super.initState();
  timer = Timer.periodic(Duration(seconds: 15), (Timer t) => checkForNewSharedLists());
}

@override
void dispose() {
  timer?.cancel();
  super.dispose();
}
Posted by: Guest on June-02-2021

Code answers related to "how to call a function every minute in flutter"

Browse Popular Code Answers by Language