ConfigData constructor

ConfigData({
  1. required ValueChanged<Routing?>? routingCallback,
  2. required Transition? defaultTransition,
  3. required VoidCallback? onInit,
  4. required VoidCallback? onReady,
  5. required VoidCallback? onDispose,
  6. required bool? enableLog,
  7. required LogWriterCallback? logWriterCallback,
  8. required SmartManagement smartManagement,
  9. required List<Bind> binds,
  10. required Duration? transitionDuration,
  11. required bool? defaultGlobalState,
  12. required List<GetPage>? getPages,
  13. required GetPage? unknownRoute,
  14. required RouteInformationProvider? routeInformationProvider,
  15. required RouteInformationParser<Object>? routeInformationParser,
  16. required RouterDelegate<Object>? routerDelegate,
  17. required BackButtonDispatcher? backButtonDispatcher,
  18. required List<NavigatorObserver>? navigatorObservers,
  19. required GlobalKey<NavigatorState>? navigatorKey,
  20. required GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  21. required Map<String, Map<String, String>>? translationsKeys,
  22. required Translations? translations,
  23. required Locale? locale,
  24. required Locale? fallbackLocale,
  25. required String? initialRoute,
  26. required CustomTransition? customTransition,
  27. required Widget? home,
  28. ThemeData? theme,
  29. ThemeData? darkTheme,
  30. ThemeMode? themeMode,
  31. Key? unikey,
  32. bool testMode = false,
  33. bool defaultOpaqueRoute = true,
  34. Duration defaultTransitionDuration = const Duration(milliseconds: 300),
  35. Curve defaultTransitionCurve = Curves.easeOutQuad,
  36. Curve defaultDialogTransitionCurve = Curves.easeOutQuad,
  37. Duration defaultDialogTransitionDuration = const Duration(milliseconds: 300),
  38. Map<String, String?> parameters = const {},
  39. Routing? routing,
  40. bool? defaultPopGesture,
})

Implementation

ConfigData({
  required this.routingCallback,
  required this.defaultTransition,
  required this.onInit,
  required this.onReady,
  required this.onDispose,
  required this.enableLog,
  required this.logWriterCallback,
  required this.smartManagement,
  required this.binds,
  required this.transitionDuration,
  required this.defaultGlobalState,
  required this.getPages,
  required this.unknownRoute,
  required this.routeInformationProvider,
  required this.routeInformationParser,
  required this.routerDelegate,
  required this.backButtonDispatcher,
  required this.navigatorObservers,
  required this.navigatorKey,
  required this.scaffoldMessengerKey,
  required this.translationsKeys,
  required this.translations,
  required this.locale,
  required this.fallbackLocale,
  required this.initialRoute,
  required this.customTransition,
  required this.home,
  this.theme,
  this.darkTheme,
  this.themeMode,
  this.unikey,
  this.testMode = false,
  this.defaultOpaqueRoute = true,
  this.defaultTransitionDuration = const Duration(milliseconds: 300),
  this.defaultTransitionCurve = Curves.easeOutQuad,
  this.defaultDialogTransitionCurve = Curves.easeOutQuad,
  this.defaultDialogTransitionDuration = const Duration(milliseconds: 300),
  this.parameters = const {},
  Routing? routing,
  bool? defaultPopGesture,
})  : defaultPopGesture = defaultPopGesture ?? GetPlatform.isIOS,
      routing = routing ?? Routing();