copyWith method
ChatColors
copyWith({
- Color? surfaceBackground,
- Color? botBubbleBackground,
- Color? userBubbleBackground,
- Color? botBubbleForeground,
- Color? userBubbleForeground,
- Color? botBubbleShadow,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ChatColors copyWith({
Color? surfaceBackground,
Color? botBubbleBackground,
Color? userBubbleBackground,
Color? botBubbleForeground,
Color? userBubbleForeground,
Color? botBubbleShadow,
}) {
return ChatColors(
surfaceBackground: surfaceBackground ?? this.surfaceBackground,
botBubbleBackground: botBubbleBackground ?? this.botBubbleBackground,
userBubbleBackground: userBubbleBackground ?? this.userBubbleBackground,
botBubbleForeground: botBubbleForeground ?? this.botBubbleForeground,
userBubbleForeground: userBubbleForeground ?? this.userBubbleForeground,
botBubbleShadow: botBubbleShadow ?? this.botBubbleShadow,
);
}