CupertinoSnackApp.router constructor

const CupertinoSnackApp.router({
  1. Key? key,
  2. Key? widgetKey,
  3. RouteInformationParser<Object>? routeInformationParser,
  4. RouterDelegate<Object>? routerDelegate,
  5. BackButtonDispatcher? backButtonDispatcher,
  6. RouterConfig<Object>? routerConfig,
  7. RouteInformationProvider? routeInformationProvider,
  8. CupertinoThemeData? theme,
  9. String onGenerateTitle(
    1. BuildContext
    )?,
  10. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  11. String title = '',
  12. Color? color,
  13. Locale? locale,
  14. Iterable<LocalizationsDelegate>? localizationsDelegates,
  15. Locale? localeListResolutionCallback(
    1. List<Locale>?,
    2. Iterable<Locale>
    )?,
  16. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  17. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  18. bool showPerformanceOverlay = false,
  19. bool checkerboardRasterCacheImages = false,
  20. bool checkerboardOffscreenLayers = false,
  21. bool showSemanticsDebugger = false,
  22. bool debugShowCheckedModeBanner = true,
  23. Map<LogicalKeySet, Intent>? shortcuts,
  24. Map<Type, Action<Intent>>? actions,
  25. String? restorationScopeId,
  26. ScrollBehavior? scrollBehavior,
  27. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
})

Implementation

const CupertinoSnackApp.router({
  super.key,
  this.widgetKey,
  this.routeInformationParser,
  this.routerDelegate,
  this.backButtonDispatcher,
  this.routerConfig,
  this.routeInformationProvider,
  this.theme,
  this.onGenerateTitle,
  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 = true,
      navigatorKey = null,
      home = null,
      initialRoute = null,
      onGenerateRoute = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = const <String, WidgetBuilder>{},
      navigatorObservers = const <NavigatorObserver>[];