merge method
Returns a new S2GroupConfig that is
a combination of this object and the given other
style.
Implementation
S2GroupConfig merge(S2GroupConfig? other) {
// if null return current object
if (other == null) return this;
return copyWith(
enabled: other.enabled,
useSelector: other.useSelector,
useCounter: other.useCounter,
sortBy: other.sortBy,
headerStyle: other.headerStyle,
);
}