EmergentApp constructor

const EmergentApp({
  1. Key? key,
  2. String title = '',
  3. Color? color,
  4. String? initialRoute,
  5. Map<String, WidgetBuilder> routes = const {},
  6. Widget? home,
  7. bool debugShowCheckedModeBanner = true,
  8. GlobalKey<NavigatorState>? navigatorKey,
  9. List<NavigatorObserver> navigatorObservers = const [],
  10. RouteFactory? onGenerateRoute,
  11. GenerateAppTitle? onGenerateTitle,
  12. InitialRouteListFactory? onGenerateInitialRoutes,
  13. RouteFactory? onUnknownRoute,
  14. EmergentThemeData theme = emergentDefaultTheme,
  15. EmergentThemeData darkTheme = emergentDefaultDarkTheme,
  16. Locale? locale,
  17. Iterable<LocalizationsDelegate>? localizationsDelegates,
  18. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  19. ThemeMode themeMode = ThemeMode.system,
  20. ThemeData? materialDarkTheme,
  21. ThemeData? materialTheme,
  22. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  23. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  24. ThemeData? highContrastTheme,
  25. ThemeData? highContrastDarkTheme,
  26. LocaleListResolutionCallback? localeListResolutionCallback,
  27. bool showPerformanceOverlay = false,
  28. bool checkerboardRasterCacheImages = false,
  29. bool checkerboardOffscreenLayers = false,
  30. bool showSemanticsDebugger = false,
  31. bool debugShowMaterialGrid = false,
  32. Map<LogicalKeySet, Intent>? shortcuts,
  33. Map<Type, Action<Intent>>? actions,
})

Implementation

const EmergentApp({
  Key? key,
  this.title = '',
  this.color,
  this.initialRoute,
  this.routes = const {},
  this.home,
  this.debugShowCheckedModeBanner = true,
  this.navigatorKey,
  this.navigatorObservers = const [],
  this.onGenerateRoute,
  this.onGenerateTitle,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.theme = emergentDefaultTheme,
  this.darkTheme = emergentDefaultDarkTheme,
  this.locale,
  this.localizationsDelegates,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.themeMode = ThemeMode.system,
  this.materialDarkTheme,
  this.materialTheme,
  this.builder,
  this.localeResolutionCallback,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.localeListResolutionCallback,
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowMaterialGrid = false,
  this.shortcuts,
  this.actions,
}) : super(key: key);