Pal.fromRouterApp constructor

Pal.fromRouterApp({
  1. Key? key,
  2. MaterialApp? childApp,
  3. ChildAppBuilder? childAppBuilder,
  4. required String appToken,
  5. bool editorModeEnabled = true,
  6. required GlobalKey<NavigatorState> navigatorKey,
  7. TextDirection textDirection = TextDirection.ltr,
})

Implementation

Pal.fromRouterApp({
  Key? key,
  this.childApp,
  this.childAppBuilder,
  required this.appToken,
  this.editorModeEnabled = true,
  required GlobalKey<NavigatorState> this.navigatorKey,
  this.textDirection = TextDirection.ltr,
})  : assert(childApp != null || childAppBuilder != null,
          'Pal must embed a client application'),
      assert(navigatorKey != null, 'Pal navigatorKey must not be null'),
      navigatorObserver = PalNavigatorObserver.instance(),
      super(key: key) {
  assert(navigatorObserver != null,
      'A navigator Observer of type PalObserver must be added to your MaterialApp');
  _init();
}