clone method
CSSBoxDecoration
clone({
- Color? color,
- DecorationImage? image,
- BoxBorder? border,
- BorderRadius? borderRadius,
- List<
KrakenBoxShadow> ? boxShadow, - Gradient? gradient,
- BlendMode? backgroundBlendMode,
- BoxShape? shape,
Implementation
CSSBoxDecoration clone({
Color? color,
DecorationImage? image,
BoxBorder? border,
BorderRadius? borderRadius,
List<KrakenBoxShadow>? boxShadow,
Gradient? gradient,
BlendMode? backgroundBlendMode,
BoxShape? shape,
}) {
return CSSBoxDecoration(
color: color ?? this.color,
image: image ?? this.image,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
boxShadow: boxShadow ?? this.boxShadow,
gradient: gradient ?? this.gradient,
backgroundBlendMode: backgroundBlendMode ?? this.backgroundBlendMode,
shape: shape ?? this.shape,
);
}