ArcaneApp constructor

const ArcaneApp({
  1. Key? key,
  2. AbstractArcaneTheme? theme,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. Widget? home,
  5. List<ArcaneRoute> arcaneRoutes = const <ArcaneRoute>[],
  6. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  7. String initialRoute = "/",
  8. RouteFactory? onGenerateRoute,
  9. InitialRouteListFactory? onGenerateInitialRoutes,
  10. RouteFactory? onUnknownRoute,
  11. NotificationListenerCallback<NavigationNotification>? onNavigationNotification,
  12. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  13. TransitionBuilder? builder,
  14. String title = '',
  15. GenerateAppTitle? onGenerateTitle,
  16. Color? color,
  17. Locale? locale,
  18. Iterable<LocalizationsDelegate>? localizationsDelegates,
  19. LocaleListResolutionCallback? localeListResolutionCallback,
  20. LocaleResolutionCallback? localeResolutionCallback,
  21. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  22. bool debugShowMaterialGrid = false,
  23. bool showPerformanceOverlay = false,
  24. bool showSemanticsDebugger = false,
  25. bool debugShowCheckedModeBanner = false,
  26. Map<ShortcutActivator, Intent>? shortcuts,
  27. Map<Type, Action<Intent>>? actions,
  28. String? restorationScopeId,
  29. AdaptiveScaling? scaling,
  30. bool disableBrowserContextMenu = true,
})

Implementation

const ArcaneApp({
  super.key,
  this.theme,
  this.navigatorKey,
  this.home,
  this.arcaneRoutes = const <ArcaneRoute>[],
  Map<String, WidgetBuilder> this.routes = const <String, WidgetBuilder>{},
  this.initialRoute = "/",
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.onNavigationNotification,
  List<NavigatorObserver> this.navigatorObservers =
      const <NavigatorObserver>[],
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = false,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scaling,
  this.disableBrowserContextMenu = true,
})  : routeInformationProvider = null,
      routeInformationParser = null,
      routerDelegate = null,
      backButtonDispatcher = null,
      routerConfig = null;