merge method

Creates a copy of this ChipSelectionItemStyle but with the given fields replaced with the new values.

Implementation

ChipSelectionItemStyle merge(ChipSelectionItemStyle? other) {
  // if null return current object
  if (other == null) return this;

  return copyWith(
    color: other.color,
    margin: other.margin,
    padding: other.padding,
    elevation: other.elevation,
    pressElevation: other.pressElevation,
    showCheckmark: other.showCheckmark,
    labelStyle: other.labelStyle,
    labelPadding: other.labelPadding,
    brightness: other.brightness,
    borderColor: other.borderColor,
    borderOpacity: other.borderOpacity,
    borderWidth: other.borderWidth,
    borderRadius: other.borderRadius,
    borderStyle: other.borderStyle,
    borderShape: other.borderShape,
    avatarBorderColor: other.avatarBorderColor,
    avatarBorderWidth: other.avatarBorderWidth,
    avatarBorderRadius: other.avatarBorderRadius,
    avatarBorderStyle: other.avatarBorderStyle,
    avatarBorderShape: other.avatarBorderShape,
    clipBehavior: other.clipBehavior,
    materialTapTargetSize: other.materialTapTargetSize,
    disabledColor: other.disabledColor,
  );
}