setState method
Provide the setState() function to external actors
Implementation
@override
void setState(VoidCallback fn) {
if (_state != null) {
if (_state!.mounted) {
_state!.setState(fn);
}
} else {
super.setState(fn);
}
// Notify dependencies of the App's InheritedWidget
notifyDependencies = true;
}