updateState function
Implementation
void Function() updateState(State state) {
return () {
// ignore: invalid_use_of_protected_member
if (state.mounted) state.setState(() {});
};
}
void Function() updateState(State state) {
return () {
// ignore: invalid_use_of_protected_member
if (state.mounted) state.setState(() {});
};
}