setNavigationKey method

void setNavigationKey(
  1. GlobalKey<NavigatorState> navigatorKey
)

Set a new navigator key for the application.

Implementation

void setNavigationKey(GlobalKey<NavigatorState> navigatorKey) => _currentNavigatorKey = navigatorKey;