merge method

ChipThemeData merge(
  1. ChipThemeData? other
)

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

Implementation

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

  return copyWith(
    curve: other.curve,
    duration: other.duration,
    deleteIcon: other.deleteIcon,
    style: other.style,
    variantStyle: other.variantStyle,
    dangerStyle: other.dangerStyle,
    warningStyle: other.warningStyle,
    successStyle: other.successStyle,
    infoStyle: other.infoStyle,
  );
}