didPush method

  1. @override
  2. @protected
  3. @mustCallSuper
void didPush()
inherited

Called when this route has been pushed.

Implementation

@override
@protected
@mustCallSuper
void didPush() {
  // No 'setState()' functions are allowed
  _setStateAllowed = false;

  for (final con in _controllerList) {
    con.didPush();
  }

  _setStateAllowed = true;

  if (_setStateRequested) {
    _setStateRequested = false;
    // Only the latest State is rebuilt
    if (isEndState) {
      // Perform a 'rebuild' if requested.
      setState(() {});
    }
  }
}