PlatformApp constructor Null safety

const PlatformApp(
  1. {Key? key,
  2. Key? widgetKey,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. Widget? home,
  5. Map<String, WidgetBuilder>? routes,
  6. String? initialRoute,
  7. RouteFactory? onGenerateRoute,
  8. RouteFactory? onUnknownRoute,
  9. List<NavigatorObserver>? navigatorObservers,
  10. TransitionBuilder? builder,
  11. String? title,
  12. GenerateAppTitle? onGenerateTitle,
  13. Color? color,
  14. Locale? locale,
  15. Iterable<LocalizationsDelegate>? localizationsDelegates,
  16. LocaleListResolutionCallback? localeListResolutionCallback,
  17. LocaleResolutionCallback? localeResolutionCallback,
  18. Iterable<Locale>? supportedLocales,
  19. bool? showPerformanceOverlay,
  20. bool? checkerboardRasterCacheImages,
  21. bool? checkerboardOffscreenLayers,
  22. bool? showSemanticsDebugger,
  23. bool? debugShowCheckedModeBanner,
  24. Map<LogicalKeySet, Intent>? shortcuts,
  25. Map<Type, Action<Intent>>? actions,
  26. InitialRouteListFactory? onGenerateInitialRoutes,
  27. String? restorationScopeId,
  28. ScrollBehavior? scrollBehavior,
  29. PlatformBuilder<MaterialAppData>? material,
  30. PlatformBuilder<CupertinoAppData>? cupertino}
)

Implementation

const PlatformApp({
  Key? 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.material,
  this.cupertino,
})  : routeInformationProvider = null,
      routeInformationParser = null,
      routerDelegate = null,
      backButtonDispatcher = null,
      materialRouter = null,
      cupertinoRouter = null,
      super(key: key);