merge method

Merge two style of ZeroButtonGroupStyle

Implementation

ZeroButtonGroupStyle merge(ZeroButtonGroupStyle? other) {
  if (other == null) return this;

  return copyWith(
    activeColor: other.activeColor,
    inactiveColor: other.inactiveColor,
    activeBorderColor: other.activeBorderColor,
    inactiveBorderColor: other.inactiveBorderColor,
    activeTextStyle: activeTextStyle?.merge(other.activeTextStyle) ??
        other.activeTextStyle,
    inactiveTextStyle: inactiveTextStyle?.merge(other.inactiveTextStyle) ??
        other.inactiveTextStyle,
    padding: other.padding,
  );
}