copyWith method

  1. @override
PickerWheelOptions 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. Color? backgroundColor,
  11. double? itemWidth,
  12. bool? looping,
  13. ValueChanged<int>? onChanged,
})
override

Implementation

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