FluentApp.router constructor

FluentApp.router({
  1. Key? key,
  2. ThemeData? theme,
  3. ThemeData? darkTheme,
  4. ThemeMode? themeMode,
  5. RouteInformationProvider? routeInformationProvider,
  6. required RouteInformationParser<Object>? routeInformationParser,
  7. required RouterDelegate<Object>? routerDelegate,
  8. BackButtonDispatcher? backButtonDispatcher,
  9. TransitionBuilder? builder,
  10. String title = '',
  11. GenerateAppTitle? onGenerateTitle,
  12. required Color color,
  13. Locale? locale,
  14. Iterable<LocalizationsDelegate>? localizationsDelegates,
  15. LocaleListResolutionCallback? localeListResolutionCallback,
  16. LocaleResolutionCallback? localeResolutionCallback,
  17. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  18. bool showPerformanceOverlay = false,
  19. bool checkerboardRasterCacheImages = false,
  20. bool checkerboardOffscreenLayers = false,
  21. bool showSemanticsDebugger = false,
  22. bool debugShowCheckedModeBanner = true,
  23. Map<LogicalKeySet, Intent>? shortcuts,
  24. Map<Type, Action<Intent>>? actions,
  25. String? restorationScopeId,
})

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

Implementation

FluentApp.router({
  Key? key,
  this.theme,
  this.darkTheme,
  this.themeMode,
  this.routeInformationProvider,
  required this.routeInformationParser,
  required this.routerDelegate,
  BackButtonDispatcher? backButtonDispatcher,
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  required Color 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,
})  : assert(routeInformationParser != null && routerDelegate != null,
          'The routeInformationParser and routerDelegate cannot be null.'),
      assert(supportedLocales.isNotEmpty),
      navigatorObservers = null,
      backButtonDispatcher =
          backButtonDispatcher ?? RootBackButtonDispatcher(),
      navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = null,
      super(key: key);