ChatRoom constructor

const ChatRoom({
  1. String? id,
  2. ChatMessage? lastMessage,
  3. required DateTime createdOn,
  4. String? type,
  5. String? subscriptionType,
  6. required List<String> membersId,
  7. required Map<String, UserModel> members,
  8. DateTime? updatedOn,
})

Implementation

const ChatRoom({
  this.id,
  this.lastMessage,
  required this.createdOn,
  this.type,
  this.subscriptionType,
  required this.membersId,
  required this.members,
  this.updatedOn,
});