// runs every 1 second Timer.periodic(new Duration(seconds: 1), (timer) { debugPrint(timer.tick.toString()); });