changedInternalState method
- @override
inherited
Called whenever the internal state of the route has changed.
This should be called whenever willHandlePopInternally, didPop,
offstage, or other internal state of the route changes value. It is used
by ModalRoute
, for example, to report the new information via its
inherited widget to any children of the route.
See also:
- changedExternalState, which is called when the
Navigator
rebuilds.
Implementation
@override
void changedInternalState() {
super.changedInternalState();
setState(() { /* internal state already changed */ });
_modalBarrier.markNeedsBuild();
}