pop<T extends Object?> method
Clients can either pop their own _pages
stack
or defer the call to a parent controller
see Navigator.pop(context) for more details
Implementation
@override
@optionalTypeArgs
void pop<T extends Object?>([T? result]) {
if (homeIndex != -1 && _activeIndex != homeIndex) {
setActiveIndex(homeIndex);
} else if (_parent != null) {
_parent!.pop(result);
}
}