how to call a method on regular interval in dart flutter code example
Example: how to repeatedly call a function flutter
import 'dart:async';
main() {
var time = const Duration(//milliseconds: // // seconds: // // minutes: // ...);
Timer.periodic(time, (timer) => {// Function}
),
}