CupertinoApp.router constructor Null safety

const CupertinoApp.router(
  1. {Key? key,
  2. RouteInformationProvider? routeInformationProvider,
  3. required RouteInformationParser<Object> routeInformationParser,
  4. required RouterDelegate<Object> routerDelegate,
  5. BackButtonDispatcher? backButtonDispatcher,
  6. CupertinoThemeData? theme,
  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<ShortcutActivator, Intent>? shortcuts,
  22. Map<Type, Action<Intent>>? actions,
  23. String? restorationScopeId,
  24. ScrollBehavior? scrollBehavior,
  25. bool useInheritedMediaQuery}
)

Creates a CupertinoApp that uses the Router instead of a Navigator.

Implementation

const CupertinoApp.router({
  Key? key,
  this.routeInformationProvider,
  required RouteInformationParser<Object> this.routeInformationParser,
  required RouterDelegate<Object> this.routerDelegate,
  this.backButtonDispatcher,
  this.theme,
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scrollBehavior,
  this.useInheritedMediaQuery = false,
}) : assert(title != null),
     assert(showPerformanceOverlay != null),
     assert(checkerboardRasterCacheImages != null),
     assert(checkerboardOffscreenLayers != null),
     assert(showSemanticsDebugger != null),
     assert(debugShowCheckedModeBanner != null),
     navigatorObservers = null,
     navigatorKey = null,
     onGenerateRoute = null,
     home = null,
     onGenerateInitialRoutes = null,
     onUnknownRoute = null,
     routes = null,
     initialRoute = null,
     super(key: key);