copyWith method
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,
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);