addKey method

Implementation

GlobalKey<NavigatorState>? addKey(GlobalKey<NavigatorState> newKey) {
  if (config.routerConfig == null && config.routerDelegate != null) {
    rootDelegate.navigatorKey = newKey;
  }
  return key;
}