Answers for "const onesec = const duration(seconds:1); new timer.periodic(onesec, (timer t) => generaterandomnumber());"

1

how to repeatedly call a function flutter

import 'dart:async';

main() {
var time = const Duration(//milliseconds: // // seconds: // // minutes: // ...);
   Timer.periodic(time, (timer) => {// Function}
   ),
}
Posted by: Guest on August-19-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language