navigatorKey property

GlobalKey<NavigatorState> navigatorKey
final

The GlobalKey to be used by the Navigator built for this branch.

A separate Navigator will be built for each StatefulShellBranch in a StatefulShellRoute and this key will be used to identify the Navigator. The routes associated with this branch will be placed o onto that Navigator instead of the root Navigator.

Implementation

final GlobalKey<NavigatorState> navigatorKey;