AndrossyApp.router constructor
AndrossyApp.router({
- Key? key,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - RouteInformationProvider? routeInformationProvider,
- RouteInformationParser<
Object> ? routeInformationParser, - RouterDelegate<
Object> ? routerDelegate, - RouterConfig<
Object> ? routerConfig, - BackButtonDispatcher? backButtonDispatcher,
- TransitionBuilder? builder,
- String title = '',
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeData? highContrastTheme,
- ThemeData? highContrastDarkTheme,
- Duration themeAnimationDuration = kThemeAnimationDuration,
- Curve themeAnimationCurve = Curves.linear,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool debugShowMaterialGrid = false,
- bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = false,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- AndrossyConfigure configure = const AndrossyConfigure.none(),
- AndrossyLocalizer localizer = const AndrossyLocalizer.none(),
- Androssy androssy = const Androssy(),
- bool userNetworkStatus = false,
Implementation
AndrossyApp.router({
super.key,
super.scaffoldMessengerKey,
super.routeInformationProvider,
super.routeInformationParser,
super.routerDelegate,
super.routerConfig,
super.backButtonDispatcher,
super.builder,
super.title = '',
super.onGenerateTitle,
super.onNavigationNotification,
super.color,
super.theme,
super.darkTheme,
super.highContrastTheme,
super.highContrastDarkTheme,
super.themeAnimationDuration = kThemeAnimationDuration,
super.themeAnimationCurve = Curves.linear,
super.locale,
super.localizationsDelegates,
super.localeListResolutionCallback,
super.localeResolutionCallback,
super.supportedLocales = const <Locale>[Locale('en', 'US')],
super.debugShowMaterialGrid = false,
super.showPerformanceOverlay = false,
super.checkerboardRasterCacheImages = false,
super.checkerboardOffscreenLayers = false,
super.showSemanticsDebugger = false,
super.debugShowCheckedModeBanner = false,
super.shortcuts,
super.actions,
super.restorationScopeId,
super.scrollBehavior,
this.configure = const AndrossyConfigure.none(),
this.localizer = const AndrossyLocalizer.none(),
this.androssy = const Androssy(),
this.userNetworkStatus = false,
}) : assert(routerDelegate != null || routerConfig != null),
notifier = AndrossyNotifier(androssy),
super.router();