merge method
This style, with any unset field taken from other.
Per field, not per object: a style setting only barWidth keeps
other's colour and padding.
Implementation
BlockQuoteStyle merge(BlockQuoteStyle? other) {
if (other == null) {
return this;
}
return BlockQuoteStyle(
barWidth: barWidth ?? other.barWidth,
barColor: barColor ?? other.barColor,
barRadius: barRadius ?? other.barRadius,
backgroundColor: backgroundColor ?? other.backgroundColor,
padding: padding ?? other.padding,
margin: margin ?? other.margin,
textStyle: textStyle ?? other.textStyle,
);
}