SuravApp constructor

const SuravApp({
  1. Key? key,
  2. bool checkerboardOffscreenLayers = false,
  3. bool debugShowCheckedModeBanner = false,
  4. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  5. Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{},
  6. bool showPerformanceOverlay = false,
  7. bool showSemanticsDebugger = false,
  8. Map<Type, Action<Intent>>? actions,
  9. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  10. bool checkerboardRasterCacheImages = false,
  11. ThemeData? darkTheme,
  12. Color? color,
  13. bool debugShowMaterialGrid = false,
  14. ThemeData? highContrastDarkTheme,
  15. ThemeData? highContrastTheme,
  16. Widget? home,
  17. String? initialRoute,
  18. Locale? locale,
  19. Locale? localeListResolutionCallback(
    1. List<Locale>?,
    2. Iterable<Locale>
    )?,
  20. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  21. Iterable<LocalizationsDelegate>? localizationsDelegates,
  22. List<Route> onGenerateInitialRoutes(
    1. String
    )?,
  23. Route? onGenerateRoute(
    1. RouteSettings
    )?,
  24. String onGenerateTitle(
    1. BuildContext
    )?,
  25. bool onNavigationNotification(
    1. NavigationNotification
    )?,
  26. Route? onUnknownRoute(
    1. RouteSettings
    )?,
  27. String? restorationScopeId,
  28. ScrollBehavior? scrollBehavior,
  29. Map<ShortcutActivator, Intent>? shortcuts,
  30. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  31. Curve themeAnimationCurve = Curves.linear,
  32. Duration themeAnimationDuration = kThemeAnimationDuration,
  33. ThemeMode? themeMode = ThemeMode.system,
  34. String title = "",
  35. ThemeData? theme,
  36. AnimationStyle? themeAnimationStyle,
})

Implementation

const SuravApp({
  super.key,
  this.checkerboardOffscreenLayers = false,
  this.debugShowCheckedModeBanner = false,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.routes = const <String, WidgetBuilder>{},
  this.showPerformanceOverlay = false,
  this.showSemanticsDebugger = false,
  this.actions,
  this.builder,
  this.checkerboardRasterCacheImages = false,
  this.darkTheme,
  this.color,
  this.debugShowMaterialGrid = false,
  this.highContrastDarkTheme,
  this.highContrastTheme,
  this.home,
  this.initialRoute,
  this.locale,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.localizationsDelegates,
  this.onGenerateInitialRoutes,
  this.onGenerateRoute,
  this.onGenerateTitle,
  this.onNavigationNotification,
  this.onUnknownRoute,
  this.restorationScopeId,
  this.scrollBehavior,
  this.shortcuts,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.themeAnimationCurve = Curves.linear,
  this.themeAnimationDuration = kThemeAnimationDuration,
  this.themeMode = ThemeMode.system,
  this.title = "",
  this.theme,
  this.themeAnimationStyle,
});