使用
Timer。
Timer t = Timer(Duration(seconds: myDuration), () { checkAnswer(''); jumpTonextQuestion(); }); // and later, before the timer goes off... t.cancel();
使用
Timer。
Timer t = Timer(Duration(seconds: myDuration), () { checkAnswer(''); jumpTonextQuestion(); }); // and later, before the timer goes off... t.cancel();