navigatorKey property

GlobalKey<NavigatorState> navigatorKey
getter/setter pair

The global navigator key used to access the current BuildContext.

Implementation

static GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();