copyWith method
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,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - Map<
String, Map< ? translationsKeys,String, String> > - 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,
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,
);
}