copyWith method
ChatMessage
copyWith(
{ - ChatMessageDetail? message,
- String? time,
- String? id,
- bool? fromMe,
- bool? isShowQuickReply,
- bool? showAction,
- bool? showAvatar,
- bool? rated,
- bool? like,
- List<QuickReplyMessage>? quickReplyMessage,
})
Implementation
ChatMessage copyWith({
ChatMessageDetail? message,
String? time,
String? id,
bool? fromMe,
bool? isShowQuickReply,
bool? showAction,
bool? showAvatar,
bool? rated,
bool? like,
List<QuickReplyMessage>? quickReplyMessage,
}) {
return ChatMessage(
message: message ?? this.message,
time: time ?? this.time,
id: id ?? this.id,
fromMe: fromMe ?? this.fromMe,
isShowQuickReply: isShowQuickReply ?? this.isShowQuickReply,
showAction: showAction ?? this.showAction,
showAvatar: showAvatar ?? this.showAvatar,
rated: rated ?? this.rated,
like: like ?? this.like,
quickReplyMessage: quickReplyMessage ?? this.quickReplyMessage,
);
}