GetCupertinoApp constructor

const GetCupertinoApp({
  1. Key? key,
  2. CupertinoThemeData? theme,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. Widget? home,
  5. Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{},
  6. String? initialRoute,
  7. RouteFactory? onGenerateRoute,
  8. InitialRouteListFactory? onGenerateInitialRoutes,
  9. RouteFactory? onUnknownRoute,
  10. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  11. TransitionBuilder? builder,
  12. Map<String, Map<String, String>>? translationsKeys,
  13. Translations? translations,
  14. TextDirection? textDirection,
  15. String title = '',
  16. GenerateAppTitle? onGenerateTitle,
  17. Color? color,
  18. CustomTransition? customTransition,
  19. VoidCallback? onInit,
  20. VoidCallback? onDispose,
  21. Locale? locale,
  22. List<Bind> binds = const [],
  23. ScrollBehavior? scrollBehavior,
  24. Locale? fallbackLocale,
  25. Iterable<LocalizationsDelegate>? localizationsDelegates,
  26. LocaleListResolutionCallback? localeListResolutionCallback,
  27. LocaleResolutionCallback? localeResolutionCallback,
  28. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  29. bool showPerformanceOverlay = false,
  30. bool checkerboardRasterCacheImages = false,
  31. bool checkerboardOffscreenLayers = false,
  32. bool showSemanticsDebugger = false,
  33. bool debugShowCheckedModeBanner = true,
  34. Map<LogicalKeySet, Intent>? shortcuts,
  35. SmartManagement smartManagement = SmartManagement.full,
  36. BindingsInterface? initialBinding,
  37. bool useInheritedMediaQuery = false,
  38. GetPage? unknownRoute,
  39. dynamic routingCallback(
    1. Routing?
    )?,
  40. Transition? defaultTransition,
  41. VoidCallback? onReady,
  42. List<GetPage>? getPages,
  43. bool? opaqueRoute,
  44. bool? enableLog = kDebugMode,
  45. LogWriterCallback? logWriterCallback,
  46. bool? popGesture,
  47. Duration? transitionDuration,
  48. bool? defaultGlobalState,
  49. ThemeData? highContrastTheme,
  50. ThemeData? highContrastDarkTheme,
  51. Map<Type, Action<Intent>>? actions,
})

Implementation

const GetCupertinoApp({
  super.key,
  this.theme,
  this.navigatorKey,
  this.home,
  Map<String, Widget Function(BuildContext)> this.routes =
      const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  List<NavigatorObserver> this.navigatorObservers =
      const <NavigatorObserver>[],
  this.builder,
  this.translationsKeys,
  this.translations,
  this.textDirection,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.customTransition,
  this.onInit,
  this.onDispose,
  this.locale,
  this.binds = const [],
  this.scrollBehavior,
  this.fallbackLocale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.smartManagement = SmartManagement.full,
  this.initialBinding,
  this.useInheritedMediaQuery = false,
  this.unknownRoute,
  this.routingCallback,
  this.defaultTransition,
  this.onReady,
  this.getPages,
  this.opaqueRoute,
  this.enableLog = kDebugMode,
  this.logWriterCallback,
  this.popGesture,
  this.transitionDuration,
  this.defaultGlobalState,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.actions,
})  : routeInformationProvider = null,
      backButtonDispatcher = null,
      routeInformationParser = null,
      routerDelegate = null,
      routerConfig = null;