CoreKit constructor

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

Implementation

const CoreKit({
  super.key,
  required this.config,
  required this.navigatorKey,
  this.ensureScreenSize = true,
  this.theme,
  this.darkTheme,
  this.themeMode,
  this.title = '',
  this.restorationScopeId,
  this.locale,
  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.themeAnimationDuration = const Duration(milliseconds: 300),
  this.themeAnimationCurve = Curves.easeInOut,
  this.shortcuts,
  this.actions,
  this.debugShowMaterialGrid = false,
  this.home,
  this.routes = const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onUnknownRoute,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.scrollBehavior,
}) : routerConfig = null,
     app = null;