copyWith method

  1. @override
ThemeExtension<CustomThemeExtension> copyWith({
  1. Color? chatBackground,
  2. Color? messageBubbleColor,
  3. Color? userBubbleColor,
  4. Color? messageTextColor,
  5. Color? inputBackgroundColor,
  6. Color? inputBorderColor,
  7. Color? inputTextColor,
  8. Color? hintTextColor,
  9. Color? backToBottomButtonColor,
  10. Color? sendButtonColor,
  11. Color? sendButtonIconColor,
  12. Color? typingIndicatorColor,
  13. Color? typingIndicatorDotColor,
  14. Color? messageTimeColor,
  15. Color? messageStatusColor,
  16. Color? messageDividerColor,
  17. double? elevation,
  18. 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,
    );