merge method
Merges another style into this one, keeping existing values as defaults.
Implementation
ChipStyle merge(ChipStyle? other) {
if (other == null) {
return this;
}
return copyWith(
backgroundColor: other.backgroundColor,
selectedBackgroundColor: other.selectedBackgroundColor,
disabledBackgroundColor: other.disabledBackgroundColor,
textColor: other.textColor,
selectedTextColor: other.selectedTextColor,
disabledTextColor: other.disabledTextColor,
borderColor: other.borderColor,
selectedBorderColor: other.selectedBorderColor,
disabledBorderColor: other.disabledBorderColor,
borderWidth: other.borderWidth,
selectedBorderWidth: other.selectedBorderWidth,
padding: other.padding,
margin: other.margin,
borderRadius: other.borderRadius,
iconSize: other.iconSize,
textStyle: other.textStyle,
elevation: other.elevation,
selectedElevation: other.selectedElevation,
shadowColor: other.shadowColor,
gradientColors: other.gradientColors,
gradientBegin: other.gradientBegin,
gradientEnd: other.gradientEnd,
duration: other.duration,
curve: other.curve,
pressedScale: other.pressedScale,
);
}