merge method

Implementation

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

  return copyWith(
    showUserName: other.showUserName,
    showTimestamp: other.showTimestamp,
    showUserAvatar: other.showUserAvatar,
    timestampFormat: other.timestampFormat,
    textStyle: other.textStyle,
    headerTextStyle: other.headerTextStyle,
    contentBackgroundColor: other.contentBackgroundColor,
    contentShape: other.contentShape,
    widthFactor: other.widthFactor,
    avatarSize: other.avatarSize,
    padding: other.padding,
    contentPadding: other.contentPadding,
    avatarPadding: other.avatarPadding,
    headerPadding: other.headerPadding,
    footerPadding: other.footerPadding,
  );
}