merge method
This style, with any unset field taken from other, field by field.
Implementation
LatexStyle merge(LatexStyle? other) {
if (other == null) {
return this;
}
return LatexStyle(
textStyle: textStyle ?? other.textStyle,
padding: padding ?? other.padding,
backgroundColor: backgroundColor ?? other.backgroundColor,
borderRadius: borderRadius ?? other.borderRadius,
scrollBlockHorizontally:
scrollBlockHorizontally ?? other.scrollBlockHorizontally,
);
}