changedInternalState method

  1. @override
void changedInternalState ()
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:

Implementation

@override
void changedInternalState() {
  super.changedInternalState();
  setState(() { /* internal state already changed */ });
  _modalBarrier.markNeedsBuild();
}