Answers for "flutter run in background every second"

1

flutter run in background every second

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 January-20-2020

Code answers related to "flutter run in background every second"

Code answers related to "Dart"

Browse Popular Code Answers by Language