GetMaterialApp.router constructor

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

Implementation

const GetMaterialApp.router({
  super.key,
  this.routeInformationProvider,
  this.scaffoldMessengerKey,
  this.routeInformationParser,
  this.routerDelegate,
  this.routerConfig,
  this.backButtonDispatcher,
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.theme,
  this.darkTheme,
  this.useInheritedMediaQuery = false,
  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.scrollBehavior,
  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 = kDebugMode,
  this.logWriterCallback,
  this.popGesture,
  this.smartManagement = SmartManagement.full,
  this.binds = const [],
  this.transitionDuration,
  this.defaultGlobalState,
  this.getPages,
  this.navigatorObservers,
  this.unknownRoute,
})  : navigatorKey = null,
      onGenerateRoute = null,
      home = null,
      onGenerateInitialRoutes = null,
      onUnknownRoute = null,
      routes = null,
      initialRoute = null;