copyWith method
Implementation
ShadowModel copyWith({
RgbModel? color,
double? offsetDX,
double? offsetDY,
double? spreadRadius,
double? blurRadius,
}) {
return ShadowModel(
color: color ?? this.color,
offsetDX: offsetDX ?? this.offsetDX,
offsetDY: offsetDY ?? this.offsetDY,
spreadRadius: spreadRadius ?? this.spreadRadius,
blurRadius: blurRadius ?? this.blurRadius,
);
}