didPush method
Called when this route has been pushed.
Implementation
@override
@mustCallSuper
void didPush() {
// Don't if the State object is defunct.
if (!mounted) {
return;
}
// 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 (isLastState) {
// Perform a 'rebuild' if requested.
setState(() {});
}
}
}