How would I put a pause in a .forEach interation
问题 I am attempting to put in a pause between a forEach loop for a list. I would have thought the timeout would cause a pause for the loop but it just seems to start 3 timers all at once. (In very quick succession.) startTimeout(int seconds) async { print('Timer Being called now'); var duration = Duration(seconds: seconds); Timer(duration, doSomething()); } startDelayedWordPrint() { List<String> testList = ['sfs','sdfsdf', 'sfdsf']; testList.forEach((value) async { await startTimeout(30000);