merge method

ZeroCardStyle merge(
  1. ZeroCardStyle? otherStyle
)

merge two ZeroCardStyle

Implementation

ZeroCardStyle merge(ZeroCardStyle? otherStyle) {
  if (otherStyle == null) return this;

  return copyWith(
    backgroundColor: otherStyle.backgroundColor,
    elevation: otherStyle.elevation,
    borderRadius: otherStyle.borderRadius,
    side: otherStyle.side,
    shadowColor: otherStyle.shadowColor,
    margin: otherStyle.margin,
    borderOnForeground: otherStyle.borderOnForeground,
  );
}