copyWith method
CustomThemeExtension
copyWith({
- Color? chatBackground,
- Color? messageBubbleColor,
- Color? userBubbleColor,
- Color? messageTextColor,
- Color? inputBackgroundColor,
- Color? inputBorderColor,
- Color? inputTextColor,
- Color? hintTextColor,
- Color? backToBottomButtonColor,
- Color? sendButtonColor,
- Color? sendButtonIconColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
CustomThemeExtension copyWith({
Color? chatBackground,
Color? messageBubbleColor,
Color? userBubbleColor,
Color? messageTextColor,
Color? inputBackgroundColor,
Color? inputBorderColor,
Color? inputTextColor,
Color? hintTextColor,
Color? backToBottomButtonColor,
Color? sendButtonColor,
Color? sendButtonIconColor,
}) {
return CustomThemeExtension(
chatBackground: chatBackground ?? this.chatBackground,
messageBubbleColor: messageBubbleColor ?? this.messageBubbleColor,
userBubbleColor: userBubbleColor ?? this.userBubbleColor,
messageTextColor: messageTextColor ?? this.messageTextColor,
inputBackgroundColor: inputBackgroundColor ?? this.inputBackgroundColor,
inputBorderColor: inputBorderColor ?? this.inputBorderColor,
inputTextColor: inputTextColor ?? this.inputTextColor,
hintTextColor: hintTextColor ?? this.hintTextColor,
backToBottomButtonColor:
backToBottomButtonColor ?? this.backToBottomButtonColor,
sendButtonColor: sendButtonColor ?? this.sendButtonColor,
sendButtonIconColor: sendButtonIconColor ?? this.sendButtonIconColor,
);
}