merge method

  1. @override
UICounterThemeData merge(
  1. covariant UICounterThemeData? other
)
override

Implementation

@override
UICounterThemeData merge(covariant UICounterThemeData? other) {
  return UICounterThemeData(
    backgroundColor: other?.backgroundColor ?? backgroundColor,
    foregroundColor: other?.foregroundColor ?? foregroundColor,
    borderRadius: other?.borderRadius ?? borderRadius,
    border: other?.border ?? border,
    minusIcon: minusIcon?.merge(other?.minusIcon) ?? other?.minusIcon,
    plusIcon: plusIcon?.merge(other?.plusIcon) ?? other?.plusIcon,
    textStyle: other?.textStyle ?? textStyle,
    zeroStyle: other?.zeroStyle ?? zeroStyle,
    iconZoneSize: other?.iconZoneSize ?? iconZoneSize,
    textZoneSize: other?.textZoneSize ?? textZoneSize,
  );
}