Flutter

Flutter: Running Timer on main()

new Timer(Duration(minutes: 30), () async {
print(‘token refreshing’);
var token = await FirebaseAuth.instance.currentUser?.getIdToken(/* forceRefresh */ true));
});

I am trying to refresh Firebase token and I have put this ins…