merge method

Implementation

CometChatConversationsStyle merge(CometChatConversationsStyle? style) {
  if (style == null) return this;
  return copyWith(
    errorStateTextColor: style.errorStateTextColor,
    emptyStateSubtitleTextStyle: style.emptyStateSubTitleTextStyle,
    emptyStateSubtitleTextColor: style.emptyStateSubTitleTextColor,
    errorStateSubTitleTextStyle: style.errorStateSubTitleTextStyle,
    errorStateSubTitleTextColor: style.errorStateSubTitleTextColor,
    itemTitleTextStyle: style.itemTitleTextStyle,
    itemTitleTextColor: style.itemTitleTextColor,
    itemSubtitleTextStyle: style.itemSubtitleTextStyle,
    itemSubtitleTextColor: style.itemSubtitleTextColor,
    messageTypeIconColor: style.messageTypeIconColor,
    separatorHeight: style.separatorHeight,
    separatorColor: style.separatorColor,
    messageBubbleAvatarStyle: style.avatarStyle,
    typingIndicatorStyle: style.typingIndicatorStyle,
    badgeStyle: style.badgeStyle,
    dateStyle: style.dateStyle,
    mentionsStyle: style.mentionsStyle,
    receiptStyle: style.receiptStyle,
    statusIndicatorStyle: style.statusIndicatorStyle,
    deleteConversationDialogStyle: style.deleteConversationDialogStyle,
    backgroundColor: style.backgroundColor,
    border: style.border,
    borderRadius: style.borderRadius,
    backIconColor: style.backIconColor,
    titleTextStyle: style.titleTextStyle,
    titleTextColor: style.titleTextColor,
    emptyStateTextStyle: style.emptyStateTextStyle,
    emptyStateTextColor: style.emptyStateTextColor,
    errorStateTextStyle: style.errorStateTextStyle,
    privateGroupIconBackground: style.privateGroupIconBackground,
    protectedGroupIconBackground: style.protectedGroupIconBackground,
    checkBoxBorder: style.checkBoxBorder,
    checkBoxBackgroundColor: style.checkBoxBackgroundColor,
    checkBoxCheckedBackgroundColor: style.checkBoxCheckedBackgroundColor,
    checkBoxBorderRadius: style.checkBoxBorderRadius,
    listItemSelectedBackgroundColor: style.listItemSelectedBackgroundColor,
    checkboxSelectedIconColor: style.checkboxSelectedIconColor,
    submitIconColor: style.submitIconColor,
    searchIconColor: style.searchIconColor,
    searchBackgroundColor: style.searchBackgroundColor,
    searchBorder: style.searchBorder,
    searchBorderRadius: style.searchBorderRadius,
    searchPlaceHolderTextStyle: style.searchPlaceHolderTextStyle,
    searchPlaceHolderTextColor: style.searchPlaceHolderTextColor,
  );
}