Pal.fromRouterApp constructor
Pal.fromRouterApp({
- Key? key,
- MaterialApp? childApp,
- ChildAppBuilder? childAppBuilder,
- required String appToken,
- bool editorModeEnabled = true,
- 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();
}