copyWith method

StreamChatTheme copyWith({
  1. StreamChatBrightness? brightness,
  2. Color? primary,
  3. Color? primaryHover,
  4. Color? onPrimary,
  5. Color? background,
  6. Color? surface,
  7. Color? surfaceHover,
  8. Color? border,
  9. Color? textPrimary,
  10. Color? textSecondary,
  11. Color? bubbleOwn,
  12. Color? bubbleOwnText,
  13. Color? bubbleOther,
  14. Color? bubbleOtherText,
  15. Color? online,
  16. Color? danger,
  17. String? fontFamily,
  18. String? borderRadius,
})

Returns a copy of this theme with the given tokens replaced.

Implementation

StreamChatTheme copyWith({
  StreamChatBrightness? brightness,
  Color? primary,
  Color? primaryHover,
  Color? onPrimary,
  Color? background,
  Color? surface,
  Color? surfaceHover,
  Color? border,
  Color? textPrimary,
  Color? textSecondary,
  Color? bubbleOwn,
  Color? bubbleOwnText,
  Color? bubbleOther,
  Color? bubbleOtherText,
  Color? online,
  Color? danger,
  String? fontFamily,
  String? borderRadius,
}) {
  return StreamChatTheme(
    brightness: brightness ?? this.brightness,
    primary: primary ?? this.primary,
    primaryHover: primaryHover ?? this.primaryHover,
    onPrimary: onPrimary ?? this.onPrimary,
    background: background ?? this.background,
    surface: surface ?? this.surface,
    surfaceHover: surfaceHover ?? this.surfaceHover,
    border: border ?? this.border,
    textPrimary: textPrimary ?? this.textPrimary,
    textSecondary: textSecondary ?? this.textSecondary,
    bubbleOwn: bubbleOwn ?? this.bubbleOwn,
    bubbleOwnText: bubbleOwnText ?? this.bubbleOwnText,
    bubbleOther: bubbleOther ?? this.bubbleOther,
    bubbleOtherText: bubbleOtherText ?? this.bubbleOtherText,
    online: online ?? this.online,
    danger: danger ?? this.danger,
    fontFamily: fontFamily ?? this.fontFamily,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}