setNavigatorKey method

void setNavigatorKey(
  1. GlobalKey<NavigatorState> navigatorKey
)

Set custom navigation key. This will help if there's route library.

Implementation

void setNavigatorKey(GlobalKey<NavigatorState> navigatorKey) {
  _navigatorKey = navigatorKey;
  _ChuckCore.navigatorKey = navigatorKey;
}