init method
dynamic
init()
Implementation
init() async {
print("init() ${DateTime.now()}");
await refreshALL();
///chiamerĂ il refreshall ogni tot secondi che inserisci sotto
timerRefreshALL = Timer.periodic(Duration(seconds: 10), (x) async => await refreshALL());
// questo dovrebbe fare, insieme alle modifiche in index.html, scatenrare l'aggiornamento della PWA. FUNZIONA !!!!
timerRefresh_PWA = Timer.periodic(Duration(hours: 1), (x) {
//solo fuori da orari od'ufficio
if (DateTime.now().hour < 7 || DateTime.now().hour == 13 || DateTime.now().hour > 18) window.location.reload();
});
}