copyWith method
WheelSpinnerThemeData
copyWith({
- BoxDecoration? boxDecoration,
- Border? border,
- BorderRadiusGeometry? borderRadius,
- Color? color,
- Gradient? gradient,
- int? dividerCount,
- Color? dividerColor,
Create a new theme based on this one, but with the given properties overridden. For each property that is null, the original value is used.
Implementation
WheelSpinnerThemeData copyWith({
BoxDecoration? boxDecoration,
Border? border,
BorderRadiusGeometry? borderRadius,
Color? color,
Gradient? gradient,
int? dividerCount,
Color? dividerColor,
}) =>
WheelSpinnerThemeData(
boxDecoration: boxDecoration ?? this.boxDecoration,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
color: color ?? this.color,
gradient: gradient ?? this.gradient,
dividerCount: dividerCount ?? this.dividerCount,
dividerColor: dividerColor ?? this.dividerColor,
);