merge method

HeadingStyle merge(
  1. HeadingStyle? other
)

This style, with any unset field taken from other, field by field.

Implementation

HeadingStyle merge(HeadingStyle? other) {
  if (other == null) {
    return this;
  }
  return HeadingStyle(
    textStyle: textStyle ?? other.textStyle,
    padding: padding ?? other.padding,
    showDivider: showDivider ?? other.showDivider,
    dividerColor: dividerColor ?? other.dividerColor,
    dividerThickness: dividerThickness ?? other.dividerThickness,
    dividerPadding: dividerPadding ?? other.dividerPadding,
  );
}