GetCupertinoApp.router constructor

GetCupertinoApp.router({
  1. Key? key,
  2. CupertinoThemeData? theme,
  3. RouteInformationProvider? routeInformationProvider,
  4. RouteInformationParser<Object>? routeInformationParser,
  5. RouterDelegate<Object>? routerDelegate,
  6. BackButtonDispatcher? backButtonDispatcher,
  7. TransitionBuilder? builder,
  8. String title = '',
  9. GenerateAppTitle? onGenerateTitle,
  10. bool useInheritedMediaQuery = false,
  11. Color? color,
  12. ThemeData? highContrastTheme,
  13. ThemeData? highContrastDarkTheme,
  14. Locale? locale,
  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 checkerboardRasterCacheImages = false,
  21. bool checkerboardOffscreenLayers = false,
  22. bool showSemanticsDebugger = false,
  23. bool debugShowCheckedModeBanner = true,
  24. Map<LogicalKeySet, Intent>? shortcuts,
  25. Map<Type, Action<Intent>>? actions,
  26. CustomTransition? customTransition,
  27. Map<String, Map<String, String>>? translationsKeys,
  28. Translations? translations,
  29. TextDirection? textDirection,
  30. Locale? fallbackLocale,
  31. dynamic routingCallback(
    1. Routing?
    )?,
  32. Transition? defaultTransition,
  33. bool? opaqueRoute,
  34. VoidCallback? onInit,
  35. VoidCallback? onReady,
  36. VoidCallback? onDispose,
  37. bool? enableLog = kDebugMode,
  38. LogWriterCallback? logWriterCallback,
  39. bool? popGesture,
  40. SmartManagement smartManagement = SmartManagement.full,
  41. Bindings? initialBinding,
  42. Duration? transitionDuration,
  43. bool? defaultGlobalState,
  44. List<GetPage>? getPages,
  45. GetPage? unknownRoute,
})

Implementation

GetCupertinoApp.router({
  Key? key,
  this.theme,
  this.routeInformationProvider,
  RouteInformationParser<Object>? routeInformationParser,
  RouterDelegate<Object>? routerDelegate,
  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.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.unknownRoute,
})  : routerDelegate = routerDelegate ??= Get.createDelegate(
        notFoundRoute: unknownRoute,
      ),
      routeInformationParser =
          routeInformationParser ??= Get.createInformationParser(
        initialRoute: getPages?.first.name ?? '/',
      ),
      navigatorObservers = null,
      navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = null,
      super(key: key) {
  Get.routerDelegate = routerDelegate;
  Get.routeInformationParser = routeInformationParser;
}