merge method

LatexStyle merge(
  1. LatexStyle? other
)

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,
  );
}