merge method

Implementation

CardTitleConfig merge(CardTitleConfig? other) {
  if (other == null) return this;
  return copyWith(
    cardTitlePadding: other._cardTitlePadding,
    titleWithHeightTextStyle:
        titleWithHeightTextStyle.merge(other._titleWithHeightTextStyle),
    titleTextStyle: titleTextStyle.merge(other._titleTextStyle),
    subtitleTextStyle: subtitleTextStyle.merge(other._subtitleTextStyle),
    detailTextStyle: detailTextStyle.merge(other._detailTextStyle),
    accessoryTextStyle: accessoryTextStyle.merge(other._accessoryTextStyle),
    alignment: other._alignment,
    cardBackgroundColor: other._cardBackgroundColor,
  );
}