copyWith method

CometChatMessageBubbleStyleData copyWith({
  1. DecorationImage? messageBubbleBackgroundImage,
  2. Color? backgroundColor,
  3. BoxBorder? border,
  4. BorderRadiusGeometry? borderRadius,
  5. TextStyle? threadedMessageIndicatorTextStyle,
  6. Color? threadedMessageIndicatorIconColor,
  7. CometChatAvatarStyle? messageBubbleAvatarStyle,
  8. CometChatDateStyle? messageBubbleDateStyle,
  9. TextStyle? senderNameTextStyle,
  10. CometChatMessageReceiptStyle? messageReceiptStyle,
  11. Color? moderationBackgroundColor,
  12. TextStyle? moderationTextStyle,
  13. Color? moderationIconTint,
  14. Color? exceptionBackgroundColor,
  15. TextStyle? exceptionTextStyle,
  16. Color? exceptionIconTint,
})

Implementation

CometChatMessageBubbleStyleData copyWith({
  DecorationImage? messageBubbleBackgroundImage,
  Color? backgroundColor,
  BoxBorder? border,
  BorderRadiusGeometry? borderRadius,
  TextStyle? threadedMessageIndicatorTextStyle,
  Color? threadedMessageIndicatorIconColor,
  CometChatAvatarStyle? messageBubbleAvatarStyle,
  CometChatDateStyle? messageBubbleDateStyle,
  TextStyle? senderNameTextStyle,
  CometChatMessageReceiptStyle? messageReceiptStyle,
  Color? moderationBackgroundColor,
  TextStyle? moderationTextStyle,
  Color? moderationIconTint,
  Color? exceptionBackgroundColor,
  TextStyle? exceptionTextStyle,
  Color? exceptionIconTint,
}) {
  return CometChatMessageBubbleStyleData(
    messageBubbleBackgroundImage:
        messageBubbleBackgroundImage ?? this.messageBubbleBackgroundImage,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    border: border ?? this.border,
    borderRadius: borderRadius ?? this.borderRadius,
    threadedMessageIndicatorTextStyle: threadedMessageIndicatorTextStyle ??
        this.threadedMessageIndicatorTextStyle,
    threadedMessageIndicatorIconColor: threadedMessageIndicatorIconColor ??
        this.threadedMessageIndicatorIconColor,
    messageBubbleAvatarStyle:
        messageBubbleAvatarStyle ?? this.messageBubbleAvatarStyle,
    messageBubbleDateStyle:
        messageBubbleDateStyle ?? this.messageBubbleDateStyle,
    senderNameTextStyle: senderNameTextStyle ?? this.senderNameTextStyle,
    messageReceiptStyle: messageReceiptStyle ?? this.messageReceiptStyle,
    moderationBackgroundColor:
        moderationBackgroundColor ?? this.moderationBackgroundColor,
    moderationTextStyle: moderationTextStyle ?? this.moderationTextStyle,
    moderationIconTint: moderationIconTint ?? this.moderationIconTint,
    exceptionBackgroundColor:
        exceptionBackgroundColor ?? this.exceptionBackgroundColor,
    exceptionTextStyle: exceptionTextStyle ?? this.exceptionTextStyle,
    exceptionIconTint: exceptionIconTint ?? this.exceptionIconTint,
  );
}