MaterialAppData constructor

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

Implementation

MaterialAppData({
  super.widgetKey,
  super.navigatorKey,
  super.home,
  super.routes,
  super.initialRoute,
  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.onGenerateInitialRoutes,
  super.restorationScopeId,
  super.scrollBehavior,
  super.onNavigationNotification,
  this.theme,
  this.debugShowMaterialGrid,
  this.darkTheme,
  this.themeMode,
  this.scaffoldMessengerKey,
  this.themeAnimationCurve,
  this.themeAnimationDuration,
});