copyWith method

DonutChartBackgroundStyle copyWith({
  1. Color? color,
  2. Color? shadowColor,
  3. double? shadowElevation,
  4. Color? innerBorderColor,
  5. Gradient? innerBorderGradient,
  6. double? innerBorderStroke,
  7. Color? outerBorderColor,
  8. Gradient? outerBorderGradient,
  9. double? outerBorderStroke,
})

Creates a copy of the current object with new values specified in arguments.

Implementation

DonutChartBackgroundStyle copyWith({
  Color? color,
  Color? shadowColor,
  double? shadowElevation,
  Color? innerBorderColor,
  Gradient? innerBorderGradient,
  double? innerBorderStroke,
  Color? outerBorderColor,
  Gradient? outerBorderGradient,
  double? outerBorderStroke,
}) =>
    DonutChartBackgroundStyle(
      color: color ?? this.color,
      shadowColor: shadowColor ?? this.shadowColor,
      shadowElevation: shadowElevation ?? this.shadowElevation,
      innerBorderColor: innerBorderColor ?? this.innerBorderColor,
      innerBorderGradient: innerBorderGradient ?? this.innerBorderGradient,
      innerBorderStroke: innerBorderStroke ?? this.innerBorderStroke,
      outerBorderColor: outerBorderColor ?? this.outerBorderColor,
      outerBorderGradient: outerBorderGradient ?? this.outerBorderGradient,
      outerBorderStroke: outerBorderStroke ?? this.outerBorderStroke,
    );