merge method
Overlays non-null properties from other, merging its typography.
Implementation
PaymentButtonStyle merge(PaymentButtonStyle? other) {
if (other == null) return this;
return PaymentButtonStyle(
backgroundColor: other.backgroundColor ?? backgroundColor,
foregroundColor: other.foregroundColor ?? foregroundColor,
borderColor: other.borderColor ?? borderColor,
borderRadius: other.borderRadius ?? borderRadius,
textStyle:
styleTypography(textStyle)?.merge(styleTypography(other.textStyle)) ??
styleTypography(other.textStyle),
);
}