copyWith method

WheelSpinnerThemeData copyWith({
  1. BoxDecoration? boxDecoration,
  2. Border? border,
  3. BorderRadiusGeometry? borderRadius,
  4. Color? color,
  5. Gradient? gradient,
  6. int? dividerCount,
  7. 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,
    );