NestedNavigator constructor

NestedNavigator({
  1. Key? key,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. String? name,
  4. List<NavigatorObserver> observers = const [],
  5. RouteFactory? onGenerateRoute,
  6. Widget? home,
})

Create a nested navigator

Automatically registered with FastNav

Implementation

NestedNavigator({
  super.key,
  GlobalKey<NavigatorState>? navigatorKey,
  this.name,
  this.observers = const [],
  this.onGenerateRoute,
  this.home,
}) : navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>();