CupertinoSnackApp.router constructor
const
CupertinoSnackApp.router({
- Key? key,
- Key? widgetKey,
- RouteInformationParser<
Object> ? routeInformationParser, - RouterDelegate<
Object> ? routerDelegate, - BackButtonDispatcher? backButtonDispatcher,
- RouterConfig<
Object> ? routerConfig, - RouteInformationProvider? routeInformationProvider,
- CupertinoThemeData? theme,
- String onGenerateTitle()?,
- Widget builder()?,
- String title = '',
- Color? color,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - Locale? localeListResolutionCallback()?,
- Locale? localeResolutionCallback()?,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- 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>[];