Answers for "Undefined class 'Timer'"

3

setinterval flutter

// runs every 1 second
Timer.periodic(new Duration(seconds: 1), (timer) {
   debugPrint(timer.tick.toString());
});
Posted by: Guest on November-20-2020
3

timer in flutter

Future.delayed(Duration(seconds: 1), () {
            print('yo hey');
          });
Posted by: Guest on May-13-2020

Browse Popular Code Answers by Language