PlatformSnackApp constructor
const
PlatformSnackApp({
- Key? key,
- Key? widgetKey,
- Widget? home,
- String? initialRoute,
- Route onGenerateRoute()?,
- List<
Route> onGenerateInitialRoutes()?, - Route onUnknownRoute()?,
- Map<
String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{}, - 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, - CupertinoThemeData? cupertinoTheme,
- ThemeMode? materialThemeMode = ThemeMode.system,
- ThemeData? materialTheme,
- ThemeData? materialDarkTheme,
- ThemeData? materialHighContrastTheme,
- ThemeData? materialHighContrastDarkTheme,
- Curve materialThemeAnimationCurve = Curves.linear,
- Duration materialThemeAnimationDuration = kThemeAnimationDuration,
Implementation
const PlatformSnackApp({
super.key,
this.widgetKey,
this.navigatorKey,
this.home,
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,
this.cupertinoTheme,
this.materialThemeMode = ThemeMode.system,
this.materialTheme,
this.materialDarkTheme,
this.materialHighContrastTheme,
this.materialHighContrastDarkTheme,
this.materialThemeAnimationCurve = Curves.linear,
this.materialThemeAnimationDuration = kThemeAnimationDuration,
}) : _isRouter = false,
backButtonDispatcher = null,
routerConfig = null,
routeInformationProvider = null,
routeInformationParser = null,
routerDelegate = null;