merge method

Merge with other StreamChannelHeaderThemeData

Implementation

StreamChannelHeaderThemeData merge(StreamChannelHeaderThemeData? other) {
  if (other == null) return this;
  return copyWith(
    titleStyle: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
    subtitleStyle:
        subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
    avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme,
    color: other.color,
  );
}