merge method
Returns a new S2GroupHeaderStyle that is
a combination of this object and the given other
style.
Implementation
S2GroupHeaderStyle merge(S2GroupHeaderStyle? other) {
// if null return current object
if (other == null) return this;
return copyWith(
backgroundColor: other.backgroundColor,
highlightColor: other.highlightColor,
textStyle: other.textStyle,
padding: other.padding,
height: other.height,
crossAxisAlignment: other.crossAxisAlignment,
mainAxisAlignment: other.mainAxisAlignment,
);
}