mergeWith method
Implementation
BoxDecoration mergeWith(BoxDecoration? other) {
if (other == null) return this;
return copyWith(
color: other.color ?? color,
image: other.image ?? image,
border: other.border ?? border,
borderRadius: other.borderRadius ?? borderRadius,
boxShadow: other.boxShadow ?? boxShadow,
gradient: other.gradient ?? gradient,
backgroundBlendMode: other.backgroundBlendMode ?? backgroundBlendMode,
shape: other.shape,
);
}