CoreKit.router constructor
const
CoreKit.router({
- Key? key,
- required CoreKitConfig config,
- required RouterConfig<
Object> ? routerConfig, - bool ensureScreenSize = true,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode? themeMode,
- String title = '',
- String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- Locale? locale,
- Duration themeAnimationDuration = const Duration(milliseconds: 300),
- Curve themeAnimationCurve = Curves.easeInOut,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool showPerformanceOverlay = false,
- bool checkerboardOffscreenLayers = false,
- bool checkerboardRasterCacheImages = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - 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>[];