merge method

ChatTheme merge(
  1. ChatTheme? other
)

Merges this theme with another ChatTheme.

Properties from other take precedence.

Implementation

ChatTheme merge(ChatTheme? other) {
  if (other == null) return this;
  return copyWith(
    colors: colors.merge(other.colors),
    typography: typography.merge(other.typography),
    shape: other.shape,
  );
}