merge method
Implementation
BoxStyle merge(List<BoxStyle?> boxes) {
var merged = this;
for (var style in boxes) {
if (style == null) continue;
merged = merged.copyWith(
color: style.color,
decoration: style.decoration,
padding: style.padding,
border: style.border,
borderRadius: style.borderRadius,
borderColor: style.borderColor,
textColor: style.textColor,
textWeight: style.textWeight,
textSize: style.textSize,
textStyle: style.textStyle,
height: style.height,
width: style.width,
hoverStyle: style.hoverStyle,
activeStyle: style.activeStyle,
errorStyle: style.errorStyle,
disabledStyle: style.disabledStyle,
);
}
return merged;
}