AuthenticatedArcaneApp.router constructor

const AuthenticatedArcaneApp.router({
  1. Key? key,
  2. required ArcaneAuthConfig authConfig,
  3. ArcaneTheme? theme,
  4. RouteInformationProvider? routeInformationProvider,
  5. RouteInformationParser<Object>? routeInformationParser,
  6. RouterDelegate<Object>? routerDelegate,
  7. RouterConfig<Object>? routerConfig,
  8. BackButtonDispatcher? backButtonDispatcher,
  9. TransitionBuilder? builder,
  10. String title = '',
  11. GenerateAppTitle? onGenerateTitle,
  12. NotificationListenerCallback<NavigationNotification>? onNavigationNotification,
  13. Color? color,
  14. Locale? locale,
  15. Iterable<LocalizationsDelegate>? localizationsDelegates,
  16. LocaleListResolutionCallback? localeListResolutionCallback,
  17. LocaleResolutionCallback? localeResolutionCallback,
  18. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  19. bool debugShowMaterialGrid = false,
  20. bool showPerformanceOverlay = false,
  21. bool showSemanticsDebugger = false,
  22. bool debugShowCheckedModeBanner = true,
  23. Map<ShortcutActivator, Intent>? shortcuts,
  24. Map<Type, Action<Intent>>? actions,
  25. String? restorationScopeId,
  26. AdaptiveScaling? scaling,
  27. bool disableBrowserContextMenu = true,
})

Implementation

const AuthenticatedArcaneApp.router({
  super.key,
  required this.authConfig,
  this.theme,
  this.routeInformationProvider,
  this.routeInformationParser,
  this.routerDelegate,
  this.routerConfig,
  this.backButtonDispatcher,
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.onNavigationNotification,
  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 = true,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scaling,
  this.disableBrowserContextMenu = true,
})  : assert(routerDelegate != null || routerConfig != null),
      navigatorObservers = null,
      navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = "/";