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. bool? isCupertino,
  9. ScrollPhysics? physics,
  10. bool? looping,
  11. ValueChanged<int>? onChanged,
  12. Color? backgroundColor,
})

Implementation

WheelOptions copyWith({
  double? itemExtent,
  double? diameterRatio,
  double? offAxisFraction,
  double? perspective,
  double? magnification,
  bool? useMagnifier,
  double? squeeze,
  bool? isCupertino,
  ScrollPhysics? physics,
  bool? looping,
  ValueChanged<int>? onChanged,
  Color? backgroundColor,
}) =>
    WheelOptions(
        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,
        isCupertino: isCupertino ?? this.isCupertino,
        physics: physics ?? this.physics,
        looping: looping ?? this.looping,
        onChanged: onChanged ?? this.onChanged,
        backgroundColor: backgroundColor ?? this.backgroundColor);