RootStackRouter constructor

RootStackRouter([
  1. GlobalKey<NavigatorState>? navigatorKey
])

Implementation

RootStackRouter([GlobalKey<NavigatorState>? navigatorKey])
    : super(
        key: const ValueKey('Root'),
        navigatorKey: navigatorKey,
      ) {
  _navigationHistory =
      kIsWeb ? WebNavigationHistory(this) : NativeNavigationHistory(this);
}