didPushNext method
Called when a new route has been pushed, and the current route is no longer visible.
Implementation
@override
@mustCallSuper
void didPushNext() {
bool tIgnore = false;
// We aren't actually popping.
// This is a hack to get access to the most
// recent Route object...
if (mounted) {
Navigator.of(context).popUntil((route) {
if (route is ModalRoute &&
!route.opaque &&
route.settings is! StandardCustomPage) {
tIgnore = true;
}
return true;
});
}
if (!tIgnore) {
_updateActiveStatus();
}
}