merge method

Implementation

ZeroSnackbarStyle merge(ZeroSnackbarStyle? other) {
  if (other == null) return this;

  return copyWith(
    backgroundColor: other.backgroundColor,
    border: other.border,
    closeIcon: other.closeIcon,
    duration: other.duration,
    textStyle: textStyle?.merge(other.textStyle) ?? other.textStyle,
    padding: other.padding,
    margin: other.margin,
    borderRadius: other.borderRadius,
    actionStyle: other.actionStyle,
    elevation: other.elevation,
  );
}