AuthenticatedArcaneApp.router constructor

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

Implementation

const AuthenticatedArcaneApp.router({
  super.key,
  this.authMethods = const [],
  this.loginScreenBuilder = _defaultLoginBuilder,
  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 = "/",
      arcaneRoutes = const <ArcaneRoute>[];