PlatformApp.router constructor
const
PlatformApp.router({
- Key? key,
- RouteInformationProvider? routeInformationProvider,
- RouteInformationParser<
Object> ? routeInformationParser, - RouterDelegate<
Object> ? routerDelegate, - RouterConfig<
Object> ? routerConfig, - BackButtonDispatcher? backButtonDispatcher,
- Key? widgetKey,
- TransitionBuilder? builder,
- String? title,
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> ? supportedLocales, - bool? showPerformanceOverlay,
- bool? checkerboardRasterCacheImages,
- bool? checkerboardOffscreenLayers,
- bool? showSemanticsDebugger,
- bool? debugShowCheckedModeBanner,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- bool? useInheritedMediaQuery,
- PlatformBuilder<
MaterialAppRouterData> ? material, - 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;