util/call_periodically library

Functions

call_periodically({required void routine(), Duration period = const Duration(milliseconds: 1000)}) → void
Calls the given routine every period.
call_periodically_with_hot_reload({required void routine(), required void wrapper(void ()), Duration period = const Duration(milliseconds: 1000)}) → void
Same as call_periodically, but meant to be used with hot reload. Inject your hot reload implementation via wrapper.