copyWith method
ThemeExtension<CustomThemeExtension>
copyWith({
- Color? chatBackground,
- Color? messageBubbleColor,
- Color? userBubbleColor,
- Color? messageTextColor,
- Color? inputBackgroundColor,
- Color? inputBorderColor,
- Color? inputTextColor,
- Color? hintTextColor,
- Color? backToBottomButtonColor,
- Color? sendButtonColor,
- Color? sendButtonIconColor,
- Color? typingIndicatorColor,
- Color? typingIndicatorDotColor,
- Color? messageTimeColor,
- Color? messageStatusColor,
- Color? messageDividerColor,
- double? elevation,
- double? borderRadius,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<CustomThemeExtension> copyWith({
Color? chatBackground,
Color? messageBubbleColor,
Color? userBubbleColor,
Color? messageTextColor,
Color? inputBackgroundColor,
Color? inputBorderColor,
Color? inputTextColor,
Color? hintTextColor,
Color? backToBottomButtonColor,
Color? sendButtonColor,
Color? sendButtonIconColor,
Color? typingIndicatorColor,
Color? typingIndicatorDotColor,
Color? messageTimeColor,
Color? messageStatusColor,
Color? messageDividerColor,
double? elevation,
double? borderRadius,
}) =>
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,
typingIndicatorColor: typingIndicatorColor ?? this.typingIndicatorColor,
typingIndicatorDotColor:
typingIndicatorDotColor ?? this.typingIndicatorDotColor,
messageTimeColor: messageTimeColor ?? this.messageTimeColor,
messageStatusColor: messageStatusColor ?? this.messageStatusColor,
messageDividerColor: messageDividerColor ?? this.messageDividerColor,
elevation: elevation ?? this.elevation,
borderRadius: borderRadius ?? this.borderRadius,
);