merge method

Creates a merged theme using other as overrides.

Implementation

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

  return copyWith(
    backgroundColor: other.backgroundColor,
    selectedColor: other.selectedColor,
    disabledColor: other.disabledColor,
    textColor: other.textColor,
    selectedTextColor: other.selectedTextColor,
    disabledTextColor: other.disabledTextColor,
    borderColor: other.borderColor,
    selectedBorderColor: other.selectedBorderColor,
    disabledBorderColor: other.disabledBorderColor,
    textStyle: other.textStyle,
    padding: other.padding,
    margin: other.margin,
    borderRadius: other.borderRadius,
    iconSize: other.iconSize,
    elevation: other.elevation,
    selectedElevation: other.selectedElevation,
    borderWidth: other.borderWidth,
    selectedBorderWidth: other.selectedBorderWidth,
    duration: other.duration,
    curve: other.curve,
    pressedScale: other.pressedScale,
    shadowColor: other.shadowColor,
  );
}