Answers for "repeating action every x seconds flutter"

1

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();
}
Posted by: Guest on January-20-2020

Code answers related to "repeating action every x seconds flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language