PlatformApp.router constructor

const PlatformApp.router({
  1. Key? key,
  2. RouteInformationProvider? routeInformationProvider,
  3. RouteInformationParser<Object>? routeInformationParser,
  4. RouterDelegate<Object>? routerDelegate,
  5. RouterConfig<Object>? routerConfig,
  6. BackButtonDispatcher? backButtonDispatcher,
  7. Key? widgetKey,
  8. TransitionBuilder? builder,
  9. String? title,
  10. GenerateAppTitle? onGenerateTitle,
  11. Color? color,
  12. Locale? locale,
  13. Iterable<LocalizationsDelegate>? localizationsDelegates,
  14. LocaleListResolutionCallback? localeListResolutionCallback,
  15. LocaleResolutionCallback? localeResolutionCallback,
  16. Iterable<Locale>? supportedLocales,
  17. bool? showPerformanceOverlay,
  18. bool? checkerboardRasterCacheImages,
  19. bool? checkerboardOffscreenLayers,
  20. bool? showSemanticsDebugger,
  21. bool? debugShowCheckedModeBanner,
  22. Map<LogicalKeySet, Intent>? shortcuts,
  23. Map<Type, Action<Intent>>? actions,
  24. String? restorationScopeId,
  25. ScrollBehavior? scrollBehavior,
  26. bool? useInheritedMediaQuery,
  27. PlatformBuilder<MaterialAppRouterData>? material,
  28. PlatformBuilder<CupertinoAppRouterData>? cupertino,
})

Implementation

const PlatformApp.router({
  super.key,
  this.routeInformationProvider,
  this.routeInformationParser,
  this.routerDelegate,
  this.routerConfig,
  this.backButtonDispatcher,
  this.widgetKey,
  this.builder,
  this.title,
  this.onGenerateTitle,
  this.color,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales,
  this.showPerformanceOverlay,
  this.checkerboardRasterCacheImages,
  this.checkerboardOffscreenLayers,
  this.showSemanticsDebugger,
  this.debugShowCheckedModeBanner,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scrollBehavior,
  this.useInheritedMediaQuery,
  PlatformBuilder<MaterialAppRouterData>? material,
  PlatformBuilder<CupertinoAppRouterData>? cupertino,
})  : navigatorObservers = null,
      navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = null,
      material = null,
      cupertino = null,
      materialRouter = material,
      cupertinoRouter = cupertino;