StandardMaterialApp<T> constructor

const StandardMaterialApp<T>({
  1. Key? key,
  2. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  3. RouteInformationProvider? routeInformationProvider,
  4. BackButtonDispatcher? backButtonDispatcher,
  5. TransitionBuilder? builder,
  6. required String onGenerateTitle(
    1. BuildContext
    ),
  7. ThemeData? theme,
  8. ThemeData? darkTheme,
  9. ThemeData? highContrastTheme,
  10. ThemeData? highContrastDarkTheme,
  11. ThemeMode? themeMode,
  12. Color? color,
  13. Locale? locale,
  14. LocaleListResolutionCallback? localeListResolutionCallback,
  15. LocaleResolutionCallback? localeResolutionCallback,
  16. bool debugShowMaterialGrid = false,
  17. bool showPerformanceOverlay = false,
  18. bool checkerboardRasterCacheImages = false,
  19. bool checkerboardOffscreenLayers = false,
  20. bool showSemanticsDebugger = false,
  21. bool debugShowCheckedModeBanner = true,
  22. Map<ShortcutActivator, Intent>? shortcuts,
  23. Map<Type, Action<Intent>>? actions,
  24. String? restorationScopeId,
  25. ScrollBehavior? scrollBehavior,
  26. required List<StandardPageWithResultFactory<StandardPageWithResult<Object?, Object?>, Object?, Object?>> pages,
  27. Widget routableBuilder(
    1. BuildContext context,
    2. Widget? child
    )?,
  28. void onDidRemovePage(
    1. Page page
    )?,
})

Creates a StandardMaterialApp.

Implementation

const StandardMaterialApp({
  super.key,
  this.scaffoldMessengerKey,
  this.routeInformationProvider,
  this.backButtonDispatcher,
  this.builder,
  required this.onGenerateTitle,
  this.theme,
  this.darkTheme,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.themeMode,
  this.color,
  this.locale,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scrollBehavior,
  required List<StandardPageWithResultFactory> pages,
  Widget Function(BuildContext context, Widget? child)? routableBuilder,
  void Function(Page page)? onDidRemovePage,
}) : _pages = pages,
     _routableBuilder = routableBuilder,
     _onDidRemovePage = onDidRemovePage;