CoreKit.router constructor

const CoreKit.router({
  1. Key? key,
  2. required CoreKitConfig config,
  3. required RouterConfig<Object>? routerConfig,
  4. required GlobalKey<NavigatorState> navigatorKey,
  5. bool ensureScreenSize = true,
  6. ThemeData? theme,
  7. ThemeData? darkTheme,
  8. ThemeMode? themeMode,
  9. String title = '',
  10. String? restorationScopeId,
  11. ScrollBehavior? scrollBehavior,
  12. Locale? locale,
  13. Duration themeAnimationDuration = const Duration(milliseconds: 300),
  14. Curve themeAnimationCurve = Curves.easeInOut,
  15. Iterable<LocalizationsDelegate>? localizationsDelegates,
  16. LocaleListResolutionCallback? localeListResolutionCallback,
  17. LocaleResolutionCallback? localeResolutionCallback,
  18. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  19. bool showPerformanceOverlay = false,
  20. bool checkerboardOffscreenLayers = false,
  21. bool checkerboardRasterCacheImages = false,
  22. bool showSemanticsDebugger = false,
  23. bool debugShowCheckedModeBanner = true,
  24. Map<ShortcutActivator, Intent>? shortcuts,
  25. Map<Type, Action<Intent>>? actions,
  26. bool debugShowMaterialGrid = false,
})

Implementation

const CoreKit.router({
  super.key,
  required this.config,
  required this.routerConfig,
  required this.navigatorKey,
  this.ensureScreenSize = true,
  this.theme,
  this.darkTheme,
  this.themeMode,
  this.title = '',
  this.restorationScopeId,
  this.scrollBehavior,
  this.locale,
  this.themeAnimationDuration = const Duration(milliseconds: 300),
  this.themeAnimationCurve = Curves.easeInOut,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.showPerformanceOverlay = false,
  this.checkerboardOffscreenLayers = false,
  this.checkerboardRasterCacheImages = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
  this.debugShowMaterialGrid = false,
}) : home = null,
     routes = const <String, WidgetBuilder>{},
     initialRoute = null,
     onGenerateRoute = null,
     onUnknownRoute = null,
     app = null,
     navigatorObservers = const <NavigatorObserver>[];