copy method

GetPage<T> copy({
  1. String? name,
  2. GetPageBuilder? page,
  3. bool? popGesture,
  4. Map<String, String>? parameters,
  5. String? title,
  6. Transition? transition,
  7. Curve? curve,
  8. Alignment? alignment,
  9. bool? maintainState,
  10. bool? opaque,
  11. Bindings? binding,
  12. List<Bindings>? bindings,
  13. CustomTransition? customTransition,
  14. Duration? transitionDuration,
  15. bool? fullscreenDialog,
  16. RouteSettings? settings,
  17. List<GetPage>? children,
  18. GetPage? unknownRoute,
  19. List<GetMiddleware>? middlewares,
  20. bool? preventDuplicates,
  21. double gestureWidth(
    1. BuildContext context
    )?,
  22. bool? participatesInRootNavigator,
  23. Object? arguments,
  24. bool? showCupertinoParallax,
})

Implementation

GetPage<T> copy({
  String? name,
  GetPageBuilder? page,
  bool? popGesture,
  Map<String, String>? parameters,
  String? title,
  Transition? transition,
  Curve? curve,
  Alignment? alignment,
  bool? maintainState,
  bool? opaque,
  Bindings? binding,
  List<Bindings>? bindings,
  CustomTransition? customTransition,
  Duration? transitionDuration,
  bool? fullscreenDialog,
  RouteSettings? settings,
  List<GetPage>? children,
  GetPage? unknownRoute,
  List<GetMiddleware>? middlewares,
  bool? preventDuplicates,
  final double Function(BuildContext context)? gestureWidth,
  bool? participatesInRootNavigator,
  Object? arguments,
  bool? showCupertinoParallax,
}) {
  return GetPage(
    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,
    binding: binding ?? this.binding,
    bindings: bindings ?? this.bindings,
    customTransition: customTransition ?? this.customTransition,
    transitionDuration: transitionDuration ?? this.transitionDuration,
    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,
  );
}