mergeWith method

BoxDecoration mergeWith(
  1. BoxDecoration? other
)

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,
  );
}