Application.router constructor

Application.router({
  1. Key? key,
  2. RouteInformationProvider? routeInformationProvider,
  3. @required RouteInformationParser<Object>? routeInformationParser,
  4. @required RouterDelegate<Object>? routerDelegate,
  5. BackButtonDispatcher? backButtonDispatcher,
  6. TransitionBuilder? builder,
  7. String title = '',
  8. GenerateAppTitle? onGenerateTitle,
  9. Color? color,
  10. ThemeData? theme,
  11. ThemeData? darkTheme,
  12. ThemeData? highContrastTheme,
  13. ThemeData? highContrastDarkTheme,
  14. ThemeMode themeMode = ThemeMode.system,
  15. Locale? locale,
  16. Iterable<LocalizationsDelegate>? localizationsDelegates,
  17. LocaleListResolutionCallback? localeListResolutionCallback,
  18. LocaleResolutionCallback? localeResolutionCallback,
  19. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  20. bool debugShowMaterialGrid = false,
  21. bool showPerformanceOverlay = false,
  22. bool checkerboardRasterCacheImages = false,
  23. bool checkerboardOffscreenLayers = false,
  24. bool showSemanticsDebugger = false,
  25. bool debugShowCheckedModeBanner = true,
  26. Map<LogicalKeySet, Intent>? shortcuts,
  27. Map<Type, Action<Intent>>? actions,
  28. CustomTransition? customTransition,
  29. Map<String, Map<String, String>>? translationsKeys,
  30. Translations? translations,
  31. TextDirection? textDirection,
  32. Locale? fallbackLocale,
  33. ValueChanged<Routing?>? routingCallback,
  34. Transition? defaultTransition,
  35. bool? opaqueRoute,
  36. VoidCallback? onInit,
  37. VoidCallback? onReady,
  38. VoidCallback? onDispose,
  39. bool? enableLog,
  40. LogWriterCallback? logWriterCallback,
  41. bool? popGesture,
  42. SmartManagement smartManagement = SmartManagement.full,
  43. Bindings? initialBinding,
  44. Duration? transitionDuration,
  45. bool? defaultGlobalState,
  46. List<GetPage>? getPages,
  47. GetPage? unknownRoute,
})

Implementation

Application.router({
  Key? key,
  this.routeInformationProvider,
  @required this.routeInformationParser,
  @required this.routerDelegate,
  this.backButtonDispatcher,
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.theme,
  this.darkTheme,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.themeMode = ThemeMode.system,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
  this.customTransition,
  this.translationsKeys,
  this.translations,
  this.textDirection,
  this.fallbackLocale,
  this.routingCallback,
  this.defaultTransition,
  this.opaqueRoute,
  this.onInit,
  this.onReady,
  this.onDispose,
  this.enableLog,
  this.logWriterCallback,
  this.popGesture,
  this.smartManagement = SmartManagement.full,
  this.initialBinding,
  this.transitionDuration,
  this.defaultGlobalState,
  this.getPages,
  this.unknownRoute,
})  : assert(routeInformationParser != null),
      assert(routerDelegate != null),
      assert(title != null),
      assert(debugShowMaterialGrid != 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);