periodic timer flutter code example
Example 1: flutter periodic timer
Timer.periodic(
Duration duration,
void callback(
Timer timer
)
)
Example 2: how to repeatedly call a function flutter
import 'dart:async';
main() {
var time = const Duration(//milliseconds: // // seconds: // // minutes: // ...);
Timer.periodic(time, (timer) => {// Function}
),
}