merge method

Merge themes

Implementation

StreamChatThemeData merge(StreamChatThemeData? other) {
  if (other == null) return this;
  return copyWith(
    channelListHeaderTheme:
        channelListHeaderTheme.merge(other.channelListHeaderTheme),
    textTheme: textTheme.merge(other.textTheme),
    colorTheme: colorTheme.merge(other.colorTheme),
    primaryIconTheme: other.primaryIconTheme,
    channelPreviewTheme: channelPreviewTheme.merge(other.channelPreviewTheme),
    channelHeaderTheme: channelHeaderTheme.merge(other.channelHeaderTheme),
    ownMessageTheme: ownMessageTheme.merge(other.ownMessageTheme),
    otherMessageTheme: otherMessageTheme.merge(other.otherMessageTheme),
    messageInputTheme: messageInputTheme.merge(other.messageInputTheme),
    galleryHeaderTheme: galleryHeaderTheme.merge(other.galleryHeaderTheme),
    galleryFooterTheme: galleryFooterTheme.merge(other.galleryFooterTheme),
    messageListViewTheme:
        messageListViewTheme.merge(other.messageListViewTheme),
  );
}