PlatformApp constructor
const
PlatformApp(
- {Key? key,
- Key? widgetKey,
- Widget? home,
- Map<
String, WidgetBuilder> ? routes, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- RouteFactory? onUnknownRoute,
- 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> > - InitialRouteListFactory? onGenerateInitialRoutes,
- String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- PlatformBuilder<
MaterialAppData> ? material, - PlatformBuilder<
CupertinoAppData> ? cupertino}
Implementation
const PlatformApp({
super.key,
this.widgetKey,
this.navigatorKey,
this.home,
this.routes,
this.initialRoute,
this.onGenerateRoute,
this.onUnknownRoute,
this.navigatorObservers,
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.onGenerateInitialRoutes,
this.restorationScopeId,
this.scrollBehavior,
this.onNavigationNotification,
this.material,
this.cupertino,
}) : routeInformationProvider = null,
routeInformationParser = null,
routerDelegate = null,
routerConfig = null,
backButtonDispatcher = null,
materialRouter = null,
cupertinoRouter = null;