Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

flutter run code 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();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #run #code
ADD COMMENT
Topic
Name
3+8 =