MacosApp.router constructor

MacosApp.router({
  1. Key? key,
  2. RouteInformationProvider? routeInformationProvider,
  3. RouteInformationParser<Object>? routeInformationParser,
  4. RouterDelegate<Object>? routerDelegate,
  5. BackButtonDispatcher? backButtonDispatcher,
  6. RouterConfig<Object>? routerConfig,
  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 = const <Locale>[Locale('en', 'US')],
  16. bool showPerformanceOverlay = false,
  17. bool checkerboardRasterCacheImages = false,
  18. bool checkerboardOffscreenLayers = false,
  19. bool showSemanticsDebugger = false,
  20. bool debugShowCheckedModeBanner = true,
  21. Map<LogicalKeySet, Intent>? shortcuts,
  22. Map<Type, Action<Intent>>? actions,
  23. String? restorationScopeId,
  24. ScrollBehavior scrollBehavior = const MacosScrollBehavior(),
  25. ThemeMode? themeMode,
  26. MacosThemeData? theme,
  27. MacosThemeData? darkTheme,
})

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

Implementation

MacosApp.router({
  super.key,
  this.routeInformationProvider,
  this.routeInformationParser,
  this.routerDelegate,
  this.backButtonDispatcher,
  this.routerConfig,
  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 = const MacosScrollBehavior(),
  this.themeMode,
  this.theme,
  this.darkTheme,
})  : assert(routerDelegate != null || routerConfig != null),
      assert(supportedLocales.isNotEmpty),
      navigatorObservers = null,
      navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = null;