merge method
Implementation
CometChatPollsBubbleStyle merge(CometChatPollsBubbleStyle? other) {
if (other == null) return this;
return copyWith(
questionTextStyle: questionTextStyle?.merge(other.questionTextStyle),
voteCountTextStyle: voteCountTextStyle?.merge(other.voteCountTextStyle),
pollOptionsTextStyle: pollOptionsTextStyle?.merge(other.pollOptionsTextStyle),
radioButtonColor: radioButtonColor ?? other.radioButtonColor,
pollOptionsBackgroundColor: pollOptionsBackgroundColor ?? other.pollOptionsBackgroundColor,
selectedOptionColor: selectedOptionColor ?? other.selectedOptionColor,
unSelectedOptionColor: unSelectedOptionColor ?? other.unSelectedOptionColor,
backgroundColor: backgroundColor ?? other.backgroundColor,
iconColor: iconColor ?? other.iconColor,
border: border ?? other.border,
borderRadius: borderRadius ?? other.borderRadius,
progressColor: progressColor ?? other.progressColor,
progressBackgroundColor: progressBackgroundColor ?? other.progressBackgroundColor,
voterAvatarStyle: voterAvatarStyle?.merge(other.voterAvatarStyle),
messageBubbleAvatarStyle: messageBubbleAvatarStyle?.merge(other.messageBubbleAvatarStyle),
messageBubbleDateStyle: messageBubbleDateStyle?.merge(other.messageBubbleDateStyle),
messageBubbleBackgroundImage: messageBubbleBackgroundImage ?? other.messageBubbleBackgroundImage,
threadedMessageIndicatorTextStyle: threadedMessageIndicatorTextStyle?.merge(other.threadedMessageIndicatorTextStyle),
threadedMessageIndicatorIconColor: threadedMessageIndicatorIconColor ?? other.threadedMessageIndicatorIconColor,
senderNameTextStyle: senderNameTextStyle?.merge(other.senderNameTextStyle),
messageReceiptStyle: messageReceiptStyle?.merge(other.messageReceiptStyle),
);
}