popPage method

void popPage(
  1. BuildContext context
)

Implementation

void popPage(BuildContext context) {
  final navState = context.findAncestorStateOfType<NavigatorState>();

  final key = navState?.widget.key ?? rootNavKey;

  _rootPageNodesSetter = _handleStackAction(
    (currentStack) => currentStack.popPage(),
    key,
  );

  notifyListeners();
}