copyWith method
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
AuroraDecoration copyWith({
Color? color,
BoxBorder? border,
BorderRadiusGeometry? borderRadius,
List<BoxShadow>? boxShadow,
List<Gradient>? gradients,
BlendMode? backgroundBlendMode,
BoxShape? shape,
}) {
return AuroraDecoration(
color: color ?? this.color,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
boxShadow: boxShadow ?? this.boxShadow,
gradients: gradients ?? this.gradients,
backgroundBlendMode: backgroundBlendMode ?? this.backgroundBlendMode,
shape: shape ?? this.shape,
);
}