reloadEvery5Seconds method
Implementation
void reloadEvery5Seconds() async {
for (;;) {
await Future.delayed(const Duration(seconds: 5));
// Check if state disposed
if (mounted) {
setState(() {});
}
}
}
void reloadEvery5Seconds() async {
for (;;) {
await Future.delayed(const Duration(seconds: 5));
// Check if state disposed
if (mounted) {
setState(() {});
}
}
}