PlatformApp.router constructor Null safety

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

Implementation

const PlatformApp.router({
  Key? key,
  this.routeInformationProvider,
  this.routeInformationParser,
  this.routerDelegate,
  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,
  PlatformBuilder<MaterialAppRouterData>? material,
  PlatformBuilder<CupertinoAppRouterData>? cupertino,
})  : navigatorObservers = null,
      navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = null,
      this.material = null,
      this.cupertino = null,
      materialRouter = material,
      cupertinoRouter = cupertino,
      super(key: key);