didPopNext method
The top route has been popped off, and this route shows up.
Implementation
@override
@mustCallSuper
void didPopNext() {
// Don't if the State object is defunct.
if (!mounted) {
return;
}
// No 'setState()' functions are allowed
// _setStateAllowed = false;
for (final con in controllerList) {
con.didPopNext();
}
_setStateAllowed = true;
if (_setStateRequested) {
_setStateRequested = false;
// Only the latest State is rebuilt
if (isLastState) {
// Perform a 'rebuild' if requested.
setState(() {});
}
}
// Record the triggered event
assert(() {
if (_printEvents) {
debugPrint('============ Event: didPopNext() in $this');
}
return true;
}());
}