navigatorKey top-level property
final
The global NavigatorState key shared between GoRouter and the rest of the app.
Used to access navigation context outside of the widget tree — for example, from service classes or background callbacks that do not hold a BuildContext.
Implementation
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();