merge method

Implementation

MExpandableThemeData merge(MExpandableThemeData? other) {
  if (other == null || isFull()) return this;
  return copyWith(
    iconColor: other.iconColor,
    useInkWell: other.useInkWell,
    inkWellBorderRadius: other.inkWellBorderRadius,
    animationDuration: other.animationDuration,
    scrollAnimationDuration: other.scrollAnimationDuration,
    crossFadePoint: other.crossFadePoint,
    fadeCurve: other.fadeCurve,
    sizeCurve: other.sizeCurve,
    alignment: other.alignment,
    headerAlignment: other.headerAlignment,
    bodyAlignment: other.bodyAlignment,
    iconPlacement: other.iconPlacement,
    tapHeaderToExpand: other.tapHeaderToExpand,
    tapBodyToExpand: other.tapBodyToExpand,
    tapBodyToCollapse: other.tapBodyToCollapse,
    hasIcon: other.hasIcon,
    iconSize: other.iconSize,
    iconPadding: other.iconPadding,
    iconRotationAngle: other.iconRotationAngle,
    expandIcon: other.expandIcon,
    collapseIcon: other.collapseIcon,
    transition: other.transition,
    clipBehavior: other.clipBehavior,
    opacityCurve: other.opacityCurve,
  );
}