Conversation constructor

Conversation({
  1. String? conversationId,
  2. required String conversationType,
  3. required AppEntity conversationWith,
  4. BaseMessage? lastMessage,
  5. DateTime? updatedAt,
  6. int? unreadMessageCount = 0,
  7. List<String>? tags,
  8. int unreadMentionsCount = 0,
  9. String? lastReadMessageId,
})

Constructs a new Conversation instance.

Requires a conversationType and conversationWith to be specified. Other properties are optional.

Implementation

Conversation({
  this.conversationId,
  required this.conversationType,
  required this.conversationWith,
  this.lastMessage,
  this.updatedAt,
  this.unreadMessageCount = 0,
  this.tags,
  this.unreadMentionsCount = 0,
  this.lastReadMessageId,
});