popPage method
Implementation
void popPage(BuildContext context) {
final navState = context.findAncestorStateOfType<NavigatorState>();
final key = navState?.widget.key ?? rootNavKey;
_rootPageNodesSetter = _handleStackAction(
(currentStack) => currentStack.popPage(),
key,
);
notifyListeners();
}