MaterialAppData constructor

const MaterialAppData({
  1. Key? widgetKey,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. Widget? home,
  4. Map<String, WidgetBuilder> routes = kDefaultAppRoutes,
  5. String? initialRoute,
  6. List<Route> onGenerateInitialRoutes(
    1. String
    )?,
  7. RouteFactory? onGenerateRoute,
  8. RouteFactory? onUnknownRoute,
  9. List<NavigatorObserver> navigatorObservers = kDefaultNavigationObservers,
  10. TransitionBuilder? builder,
  11. String? title,
  12. GenerateAppTitle? onGenerateTitle,
  13. Color? color,
  14. Locale? locale,
  15. Iterable<LocalizationsDelegate>? localizationsDelegates,
  16. LocaleListResolutionCallback? localeListResolutionCallback,
  17. LocaleResolutionCallback? localeResolutionCallback,
  18. Iterable<Locale> supportedLocales = kDefaultSupportedLocales,
  19. bool showPerformanceOverlay = kDefaultShowPerformanceOverlay,
  20. bool checkerboardRasterCacheImages = kDefaultCheckerboardRasterCacheImages,
  21. bool checkerboardOffscreenLayers = kDefaultCheckerboardOffscreenLayers,
  22. bool showSemanticsDebugger = kDefaultShowSemanticsDebugger,
  23. bool debugShowCheckedModeBanner = kDefaultDebugShowCheckedModeBanner,
  24. Map<LogicalKeySet, Intent>? shortcuts,
  25. Map<Type, Action<Intent>>? actions,
  26. bool onNavigationNotification(
    1. NavigationNotification
    )?,
  27. String? restorationScopeId,
  28. ScrollBehavior? scrollBehavior,
  29. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  30. ThemeData? theme,
  31. ThemeData? darkTheme,
  32. ThemeData? highContrastTheme,
  33. ThemeData? highContrastDarkTheme,
  34. ThemeMode? themeMode,
  35. Duration themeAnimationDuration = kMaterialDefaultThemeAnimationDuration,
  36. Curve themeAnimationCurve = kMaterialDefaultThemeAnimationCurve,
  37. bool debugShowMaterialGrid = kDebugShowMaterialGrid,
  38. AnimationStyle? themeAnimationStyle,
})

Implementation

const MaterialAppData({
  super.widgetKey,
  super.navigatorKey,
  super.home,
  super.routes,
  super.initialRoute,
  super.onGenerateInitialRoutes,
  super.onGenerateRoute,
  super.onUnknownRoute,
  super.navigatorObservers,
  super.builder,
  super.title,
  super.onGenerateTitle,
  super.color,
  super.locale,
  super.localizationsDelegates,
  super.localeListResolutionCallback,
  super.localeResolutionCallback,
  super.supportedLocales,
  super.showPerformanceOverlay,
  super.checkerboardRasterCacheImages,
  super.checkerboardOffscreenLayers,
  super.showSemanticsDebugger,
  super.debugShowCheckedModeBanner,
  super.shortcuts,
  super.actions,
  super.onNavigationNotification,
  super.restorationScopeId,
  super.scrollBehavior,
  this.scaffoldMessengerKey,
  this.theme,
  this.darkTheme,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.themeMode,
  this.themeAnimationDuration = kMaterialDefaultThemeAnimationDuration,
  this.themeAnimationCurve = kMaterialDefaultThemeAnimationCurve,
  this.debugShowMaterialGrid = kDebugShowMaterialGrid,
  this.themeAnimationStyle,
});