NRouter constructor

NRouter({
  1. required NPageMain rootPage,
  2. String? restorationId,
  3. Map<String, dynamic> params = const {},
  4. Map<String, dynamic>? extra,
  5. Object? groupId,
  6. List<NavigatorObserver> observers = const [],
  7. bool updateLocation = false,
})

Implementation

NRouter({
  required this.rootPage,
  String? restorationId,
  Map<String, dynamic> params = const {},
  Map<String, dynamic>? extra,
  Object? groupId,
  this.observers = const [],
  this.updateLocation = false,
}) {
  routerDelegate = NRouterDelegate(
      restorationId: restorationId, rootPage: rootPage, router: this);
  routerDelegate.init(params, extra, groupId);
}