copyWith method

WheelOptions copyWith({
  1. double? itemExtent,
  2. double? diameterRatio,
  3. double? offAxisFraction,
  4. double? perspective,
  5. double? magnification,
  6. bool? useMagnifier,
  7. double? squeeze,
  8. ScrollPhysics? physics,
  9. Widget? selectionOverlay,
  10. Color? backgroundColor,
  11. bool? isCupertino,
  12. double? overAndUnderCenterOpacity,
  13. bool? renderChildrenOutsideViewport,
  14. Clip? clipBehavior,
  15. ScrollBehavior? scrollBehavior,
  16. String? restorationId,
})

Implementation

WheelOptions copyWith(
        {double? itemExtent,
        double? diameterRatio,
        double? offAxisFraction,
        double? perspective,
        double? magnification,
        bool? useMagnifier,
        double? squeeze,
        ScrollPhysics? physics,
        Widget? selectionOverlay,
        Color? backgroundColor,
        bool? isCupertino,
        double? overAndUnderCenterOpacity,
        bool? renderChildrenOutsideViewport,
        Clip? clipBehavior,
        ScrollBehavior? scrollBehavior,
        String? restorationId}) =>
    WheelOptions.custom(
        isCupertino: isCupertino ?? this.isCupertino,
        itemExtent: itemExtent ?? this.itemExtent,
        diameterRatio: diameterRatio ?? this.diameterRatio,
        offAxisFraction: offAxisFraction ?? this.offAxisFraction,
        perspective: perspective ?? this.perspective,
        magnification: magnification ?? this.magnification,
        useMagnifier: useMagnifier ?? this.useMagnifier,
        squeeze: squeeze ?? this.squeeze,
        physics: physics ?? this.physics,
        selectionOverlay: selectionOverlay ?? this.selectionOverlay,
        backgroundColor: backgroundColor ?? this.backgroundColor,
        clipBehavior: clipBehavior ?? this.clipBehavior,
        overAndUnderCenterOpacity:
            overAndUnderCenterOpacity ?? this.overAndUnderCenterOpacity,
        renderChildrenOutsideViewport: renderChildrenOutsideViewport ??
            this.renderChildrenOutsideViewport,
        scrollBehavior: scrollBehavior ?? this.scrollBehavior,
        restorationId: restorationId ?? this.restorationId);