merge method

void merge(
  1. Style newStyle
)

Implementation

void merge(Style newStyle) {
  background = newStyle.background ?? background;
  primary = newStyle.primary ?? primary;
  foreground = newStyle.foreground ?? foreground;
  border = newStyle.border ?? border;
  secondary = newStyle.secondary ?? secondary;
  shadow = newStyle.shadow ?? shadow;
  borderRadius = newStyle.borderRadius ?? borderRadius;
  borderWidth = newStyle.borderWidth ?? borderWidth;
  padding = newStyle.padding ?? padding;
  margin = newStyle.margin ?? margin;
  fontFamily = newStyle.fontFamily ?? fontFamily;
  fontSize = newStyle.fontSize ?? fontSize;
  fontWeight = newStyle.fontWeight ?? fontWeight;
  textAlign = newStyle.textAlign ?? textAlign;
  size = newStyle.size ?? size;
  maxWidth = newStyle.maxWidth ?? maxWidth;
  maxHeight = newStyle.maxHeight ?? maxHeight;
  blur = newStyle.blur ?? blur;
}