void initUser() async {
currentUser = await UserController.getUser();
if (mounted) {
setState(() => 0);
}
}
What is this code doing? I've read the documentation but still couldn't understand.
What is this mounted keyword and what does it mean when we do setState(() => 0)
? Does doing this set all the states to their initial values?