copyWith method
GetPage<T>
copyWith({
- LocalKey? key,
- String? name,
- GetPageBuilder? page,
- bool? popGesture,
- Map<
String, String> ? parameters, - String? title,
- Transition? transition,
- Curve? curve,
- Alignment? alignment,
- bool? maintainState,
- bool? opaque,
- List<
BindingsInterface> ? bindings, - BindingsInterface? binding,
- List<
Bind> ? binds, - CustomTransition? customTransition,
- Duration? transitionDuration,
- Duration? reverseTransitionDuration,
- bool? fullscreenDialog,
- RouteSettings? settings,
- List<
GetPage< ? children,T> > - GetPage? unknownRoute,
- List<
GetMiddleware> ? middlewares, - bool? preventDuplicates,
- double gestureWidth(
- BuildContext context
- Object? arguments,
- bool? showCupertinoParallax,
- Completer<
T?> ? completer, - bool? inheritParentPath,
- bool? canPop,
- PopInvokedWithResultCallback<
T> ? onPopInvoked, - String? restorationId,
Implementation
GetPage<T> copyWith({
LocalKey? key,
String? name,
GetPageBuilder? page,
bool? popGesture,
Map<String, String>? parameters,
String? title,
Transition? transition,
Curve? curve,
Alignment? alignment,
bool? maintainState,
bool? opaque,
List<BindingsInterface>? bindings,
BindingsInterface? binding,
List<Bind>? binds,
CustomTransition? customTransition,
Duration? transitionDuration,
Duration? reverseTransitionDuration,
bool? fullscreenDialog,
RouteSettings? settings,
List<GetPage<T>>? children,
GetPage? unknownRoute,
List<GetMiddleware>? middlewares,
bool? preventDuplicates,
final double Function(BuildContext context)? gestureWidth,
bool? participatesInRootNavigator,
Object? arguments,
bool? showCupertinoParallax,
Completer<T?>? completer,
bool? inheritParentPath,
bool? canPop,
PopInvokedWithResultCallback<T>? onPopInvoked,
String? restorationId,
}) {
return GetPage(
key: key ?? this.key,
participatesInRootNavigator:
participatesInRootNavigator ?? this.participatesInRootNavigator,
preventDuplicates: preventDuplicates ?? this.preventDuplicates,
name: name ?? this.name,
page: page ?? this.page,
popGesture: popGesture ?? this.popGesture,
parameters: parameters ?? this.parameters,
title: title ?? this.title,
transition: transition ?? this.transition,
curve: curve ?? this.curve,
alignment: alignment ?? this.alignment,
maintainState: maintainState ?? this.maintainState,
opaque: opaque ?? this.opaque,
bindings: bindings ?? this.bindings,
binds: binds ?? this.binds,
binding: binding ?? this.binding,
customTransition: customTransition ?? this.customTransition,
transitionDuration: transitionDuration ?? this.transitionDuration,
reverseTransitionDuration:
reverseTransitionDuration ?? this.reverseTransitionDuration,
fullscreenDialog: fullscreenDialog ?? this.fullscreenDialog,
children: children ?? this.children,
unknownRoute: unknownRoute ?? this.unknownRoute,
middlewares: middlewares ?? this.middlewares,
gestureWidth: gestureWidth ?? this.gestureWidth,
arguments: arguments ?? this.arguments,
showCupertinoParallax:
showCupertinoParallax ?? this.showCupertinoParallax,
completer: completer ?? this.completer,
inheritParentPath: inheritParentPath ?? this.inheritParentPath,
canPop: canPop ?? this.canPop,
onPopInvoked: onPopInvoked ?? this.onPopInvoked,
restorationId: restorationId ?? restorationId,
);
}