copyWith method
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,
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,
);
}