copyWith method

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

Implementation

ConfigData copyWith({
  ValueChanged<Routing?>? routingCallback,
  Transition? defaultTransition,
  VoidCallback? onInit,
  VoidCallback? onReady,
  VoidCallback? onDispose,
  bool? enableLog,
  LogWriterCallback? logWriterCallback,
  SmartManagement? smartManagement,
  List<Bind>? binds,
  Duration? transitionDuration,
  bool? defaultGlobalState,
  List<GetPage>? getPages,
  GetPage? unknownRoute,
  RouteInformationProvider? routeInformationProvider,
  RouteInformationParser<Object>? routeInformationParser,
  RouterDelegate<Object>? routerDelegate,
  BackButtonDispatcher? backButtonDispatcher,
  List<NavigatorObserver>? navigatorObservers,
  GlobalKey<NavigatorState>? navigatorKey,
  GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  Map<String, Map<String, String>>? translationsKeys,
  Translations? translations,
  Locale? locale,
  Locale? fallbackLocale,
  String? initialRoute,
  CustomTransition? customTransition,
  Widget? home,
  bool? testMode,
  Key? unikey,
  ThemeData? theme,
  ThemeData? darkTheme,
  ThemeMode? themeMode,
  bool? defaultPopGesture,
  bool? defaultOpaqueRoute,
  Duration? defaultTransitionDuration,
  Curve? defaultTransitionCurve,
  Curve? defaultDialogTransitionCurve,
  Duration? defaultDialogTransitionDuration,
  Routing? routing,
  Map<String, String?>? parameters,
}) {
  return ConfigData(
    routingCallback: routingCallback ?? this.routingCallback,
    defaultTransition: defaultTransition ?? this.defaultTransition,
    onInit: onInit ?? this.onInit,
    onReady: onReady ?? this.onReady,
    onDispose: onDispose ?? this.onDispose,
    enableLog: enableLog ?? this.enableLog,
    logWriterCallback: logWriterCallback ?? this.logWriterCallback,
    smartManagement: smartManagement ?? this.smartManagement,
    binds: binds ?? this.binds,
    transitionDuration: transitionDuration ?? this.transitionDuration,
    defaultGlobalState: defaultGlobalState ?? this.defaultGlobalState,
    getPages: getPages ?? this.getPages,
    unknownRoute: unknownRoute ?? this.unknownRoute,
    routeInformationProvider:
        routeInformationProvider ?? this.routeInformationProvider,
    routeInformationParser:
        routeInformationParser ?? this.routeInformationParser,
    routerDelegate: routerDelegate ?? this.routerDelegate,
    backButtonDispatcher: backButtonDispatcher ?? this.backButtonDispatcher,
    navigatorObservers: navigatorObservers ?? this.navigatorObservers,
    navigatorKey: navigatorKey ?? this.navigatorKey,
    scaffoldMessengerKey: scaffoldMessengerKey ?? this.scaffoldMessengerKey,
    translationsKeys: translationsKeys ?? this.translationsKeys,
    translations: translations ?? this.translations,
    locale: locale ?? this.locale,
    fallbackLocale: fallbackLocale ?? this.fallbackLocale,
    initialRoute: initialRoute ?? this.initialRoute,
    customTransition: customTransition ?? this.customTransition,
    home: home ?? this.home,
    testMode: testMode ?? this.testMode,
    unikey: unikey ?? this.unikey,
    theme: theme ?? this.theme,
    darkTheme: darkTheme ?? this.darkTheme,
    themeMode: themeMode ?? this.themeMode,
    defaultPopGesture: defaultPopGesture ?? this.defaultPopGesture,
    defaultOpaqueRoute: defaultOpaqueRoute ?? this.defaultOpaqueRoute,
    defaultTransitionDuration:
        defaultTransitionDuration ?? this.defaultTransitionDuration,
    defaultTransitionCurve:
        defaultTransitionCurve ?? this.defaultTransitionCurve,
    defaultDialogTransitionCurve:
        defaultDialogTransitionCurve ?? this.defaultDialogTransitionCurve,
    defaultDialogTransitionDuration: defaultDialogTransitionDuration ??
        this.defaultDialogTransitionDuration,
    routing: routing ?? this.routing,
    parameters: parameters ?? this.parameters,
  );
}