RoomMessage constructor

RoomMessage({
  1. required String uuid,
  2. required String type,
  3. String? fromAccount,
  4. required String fromNick,
  5. String? fromAvatar,
  6. String? content,
  7. List<String?>? toAccounts,
  8. required int time,
  9. RoomMessageAttachment? attachment,
  10. RoomNotification? notification,
  11. int? eventType,
  12. String? operatorAccount,
  13. String? recallMessageId,
  14. required ChatroomType chatroomType,
})

Implementation

RoomMessage({
  required this.uuid,
  required this.type,
  this.fromAccount,
  required this.fromNick,
  this.fromAvatar,
  this.content,
  this.toAccounts,
  required this.time,
  this.attachment,
  this.notification,
  this.eventType,
  this.operatorAccount,
  this.recallMessageId,
  required this.chatroomType,
});