navigatorKey property

GlobalKey<NavigatorState> get navigatorKey

This is navigatorKey you have to pass it in the MaterialApp in the main.dart

Implementation

static GlobalKey<NavigatorState> get navigatorKey => _navigatorKey;