AndrossyApp.router constructor

AndrossyApp.router({
  1. Key? key,
  2. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  3. RouteInformationProvider? routeInformationProvider,
  4. RouteInformationParser<Object>? routeInformationParser,
  5. RouterDelegate<Object>? routerDelegate,
  6. RouterConfig<Object>? routerConfig,
  7. BackButtonDispatcher? backButtonDispatcher,
  8. TransitionBuilder? builder,
  9. String title = '',
  10. GenerateAppTitle? onGenerateTitle,
  11. NotificationListenerCallback<NavigationNotification>? onNavigationNotification,
  12. Color? color,
  13. ThemeData? theme,
  14. ThemeData? darkTheme,
  15. ThemeData? highContrastTheme,
  16. ThemeData? highContrastDarkTheme,
  17. Duration themeAnimationDuration = kThemeAnimationDuration,
  18. Curve themeAnimationCurve = Curves.linear,
  19. Locale? locale,
  20. Iterable<LocalizationsDelegate>? localizationsDelegates,
  21. LocaleListResolutionCallback? localeListResolutionCallback,
  22. LocaleResolutionCallback? localeResolutionCallback,
  23. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  24. bool debugShowMaterialGrid = false,
  25. bool showPerformanceOverlay = false,
  26. bool checkerboardRasterCacheImages = false,
  27. bool checkerboardOffscreenLayers = false,
  28. bool showSemanticsDebugger = false,
  29. bool debugShowCheckedModeBanner = false,
  30. Map<ShortcutActivator, Intent>? shortcuts,
  31. Map<Type, Action<Intent>>? actions,
  32. String? restorationScopeId,
  33. ScrollBehavior? scrollBehavior,
  34. AndrossyConfigure configure = const AndrossyConfigure.none(),
  35. AndrossyLocalizer localizer = const AndrossyLocalizer.none(),
  36. Androssy androssy = const Androssy(),
  37. bool userNetworkStatus = false,
})

Implementation

AndrossyApp.router({
  super.key,
  super.scaffoldMessengerKey,
  super.routeInformationProvider,
  super.routeInformationParser,
  super.routerDelegate,
  super.routerConfig,
  super.backButtonDispatcher,
  super.builder,
  super.title = '',
  super.onGenerateTitle,
  super.onNavigationNotification,
  super.color,
  super.theme,
  super.darkTheme,
  super.highContrastTheme,
  super.highContrastDarkTheme,
  super.themeAnimationDuration = kThemeAnimationDuration,
  super.themeAnimationCurve = Curves.linear,
  super.locale,
  super.localizationsDelegates,
  super.localeListResolutionCallback,
  super.localeResolutionCallback,
  super.supportedLocales = const <Locale>[Locale('en', 'US')],
  super.debugShowMaterialGrid = false,
  super.showPerformanceOverlay = false,
  super.checkerboardRasterCacheImages = false,
  super.checkerboardOffscreenLayers = false,
  super.showSemanticsDebugger = false,
  super.debugShowCheckedModeBanner = false,
  super.shortcuts,
  super.actions,
  super.restorationScopeId,
  super.scrollBehavior,
  this.configure = const AndrossyConfigure.none(),
  this.localizer = const AndrossyLocalizer.none(),
  this.androssy = const Androssy(),
  this.userNetworkStatus = false,
})  : assert(routerDelegate != null || routerConfig != null),
      notifier = AndrossyNotifier(androssy),
      super.router();