merge method

Merge with a theme

Implementation

StreamMessageThemeData merge(StreamMessageThemeData? other) {
  if (other == null) return this;
  return copyWith(
    messageTextStyle: messageTextStyle?.merge(other.messageTextStyle) ??
        other.messageTextStyle,
    messageAuthorStyle: messageAuthorStyle?.merge(other.messageAuthorStyle) ??
        other.messageAuthorStyle,
    messageLinksStyle: messageLinksStyle?.merge(other.messageLinksStyle) ??
        other.messageLinksStyle,
    createdAtStyle:
        createdAtStyle?.merge(other.createdAtStyle) ?? other.createdAtStyle,
    repliesStyle:
        repliesStyle?.merge(other.repliesStyle) ?? other.repliesStyle,
    messageBackgroundColor: other.messageBackgroundColor,
    messageBorderColor: other.messageBorderColor,
    avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme,
    reactionsBackgroundColor: other.reactionsBackgroundColor,
    reactionsBorderColor: other.reactionsBorderColor,
    reactionsMaskColor: other.reactionsMaskColor,
    urlAttachmentBackgroundColor: other.urlAttachmentBackgroundColor,
    urlAttachmentHostStyle: other.urlAttachmentHostStyle,
    urlAttachmentTitleStyle: other.urlAttachmentTitleStyle,
    urlAttachmentTextStyle: other.urlAttachmentTextStyle,
    urlAttachmentTitleMaxLine: other.urlAttachmentTitleMaxLine,
    urlAttachmentTextMaxLine: other.urlAttachmentTextMaxLine,
  );
}