HybridApp constructor

const HybridApp({
  1. Key? key,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. String? initialRoute,
  4. RouteFactory? onGenerateRoute,
  5. InitialRouteListFactory? onGenerateInitialRoutes,
  6. RouteFactory? onUnknownRoute,
  7. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  8. TransitionBuilder? builder,
  9. Color? color,
  10. TextStyle? textStyle,
  11. Locale? locale,
  12. Iterable<LocalizationsDelegate>? localizationsDelegates,
  13. LocaleListResolutionCallback? localeListResolutionCallback,
  14. LocaleResolutionCallback? localeResolutionCallback,
  15. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  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<LogicalKeySet, Intent>? shortcuts,
  23. Map<Type, Action<Intent>>? actions,
  24. String? restorationScopeId,
})

Implementation

const HybridApp({
  Key? key,
  this.navigatorKey,
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  List<NavigatorObserver> this.navigatorObservers = const <NavigatorObserver>[],
  this.builder,
  this.color,
  this.textStyle,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
}) : routeInformationProvider = null,
     routeInformationParser = null,
     routerDelegate = null,
     backButtonDispatcher = null,
     super(key: key);