GetCupertinoApp.router constructor

const GetCupertinoApp.router({
  1. Key? key,
  2. CupertinoThemeData? theme,
  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. bool useInheritedMediaQuery = false,
  12. Color? color,
  13. ThemeData? highContrastTheme,
  14. ThemeData? highContrastDarkTheme,
  15. Locale? locale,
  16. Iterable<LocalizationsDelegate>? localizationsDelegates,
  17. LocaleListResolutionCallback? localeListResolutionCallback,
  18. LocaleResolutionCallback? localeResolutionCallback,
  19. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  20. bool showPerformanceOverlay = false,
  21. bool checkerboardRasterCacheImages = false,
  22. bool checkerboardOffscreenLayers = false,
  23. bool showSemanticsDebugger = false,
  24. bool debugShowCheckedModeBanner = true,
  25. Map<LogicalKeySet, Intent>? shortcuts,
  26. List<Bind> binds = const [],
  27. ScrollBehavior? scrollBehavior,
  28. Map<Type, Action<Intent>>? actions,
  29. CustomTransition? customTransition,
  30. Map<String, Map<String, String>>? translationsKeys,
  31. Translations? translations,
  32. TextDirection? textDirection,
  33. Locale? fallbackLocale,
  34. dynamic routingCallback(
    1. Routing?
    )?,
  35. Transition? defaultTransition,
  36. bool? opaqueRoute,
  37. VoidCallback? onInit,
  38. VoidCallback? onReady,
  39. VoidCallback? onDispose,
  40. bool? enableLog = kDebugMode,
  41. LogWriterCallback? logWriterCallback,
  42. bool? popGesture,
  43. SmartManagement smartManagement = SmartManagement.full,
  44. BindingsInterface? initialBinding,
  45. Duration? transitionDuration,
  46. bool? defaultGlobalState,
  47. List<GetPage>? getPages,
  48. List<NavigatorObserver>? navigatorObservers,
  49. GetPage? unknownRoute,
})

Implementation

const GetCupertinoApp.router({
  super.key,
  this.theme,
  this.routeInformationProvider,
  this.routeInformationParser,
  this.routerDelegate,
  this.routerConfig,
  this.backButtonDispatcher,
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.useInheritedMediaQuery = false,
  this.color,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.locale,
  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.binds = const [],
  this.scrollBehavior,
  this.actions,
  this.customTransition,
  this.translationsKeys,
  this.translations,
  this.textDirection,
  this.fallbackLocale,
  this.routingCallback,
  this.defaultTransition,
  this.opaqueRoute,
  this.onInit,
  this.onReady,
  this.onDispose,
  this.enableLog = kDebugMode,
  this.logWriterCallback,
  this.popGesture,
  this.smartManagement = SmartManagement.full,
  this.initialBinding,
  this.transitionDuration,
  this.defaultGlobalState,
  this.getPages,
  this.navigatorObservers,
  this.unknownRoute,
})  : navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = null;