copyWith method
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,
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,
);
}