CupertinoSnackApp constructor

const CupertinoSnackApp({
  1. Key? key,
  2. Key? widgetKey,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. Widget? home,
  5. CupertinoThemeData? theme,
  6. String? initialRoute,
  7. Route onGenerateRoute(
    1. RouteSettings
    )?,
  8. List<Route> onGenerateInitialRoutes(
    1. String
    )?,
  9. Route onUnknownRoute(
    1. RouteSettings
    )?,
  10. Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{},
  11. String onGenerateTitle(
    1. BuildContext
    )?,
  12. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  13. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  14. String title = '',
  15. Color? color,
  16. Locale? locale,
  17. Iterable<LocalizationsDelegate>? localizationsDelegates,
  18. Locale? localeListResolutionCallback(
    1. List<Locale>?,
    2. Iterable<Locale>
    )?,
  19. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  20. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  21. bool showPerformanceOverlay = false,
  22. bool checkerboardRasterCacheImages = false,
  23. bool checkerboardOffscreenLayers = false,
  24. bool showSemanticsDebugger = false,
  25. bool debugShowCheckedModeBanner = true,
  26. Map<LogicalKeySet, Intent>? shortcuts,
  27. Map<Type, Action<Intent>>? actions,
  28. String? restorationScopeId,
  29. ScrollBehavior? scrollBehavior,
  30. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
})

Implementation

const CupertinoSnackApp({
  super.key,
  this.widgetKey,
  this.navigatorKey,
  this.home,
  this.theme,
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.routes = const <String, WidgetBuilder>{},
  this.onGenerateTitle,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.builder,
  this.title = '',
  this.color,
  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.restorationScopeId,
  this.scrollBehavior,
  this.scaffoldMessengerKey,
})  : _isRouter = false,
      routeInformationParser = null,
      routerDelegate = null,
      backButtonDispatcher = null,
      routerConfig = null,
      routeInformationProvider = null;