FluentApp.router constructor
FluentApp.router({
- Key? key,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode? themeMode,
- RouteInformationProvider? routeInformationProvider,
- required RouteInformationParser<
Object> ? routeInformationParser, - required RouterDelegate<
Object> ? routerDelegate, - BackButtonDispatcher? backButtonDispatcher,
- TransitionBuilder? builder,
- String title = '',
- GenerateAppTitle? onGenerateTitle,
- required Color color,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
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);