copyWith method

ChatMessage copyWith({
  1. ChatMessageDetail? message,
  2. String? time,
  3. String? id,
  4. bool? fromMe,
  5. bool? isShowQuickReply,
  6. bool? showAction,
  7. bool? showAvatar,
  8. bool? rated,
  9. bool? like,
  10. 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,
  );
}