ChatRoomMessage constructor

ChatRoomMessage({
  1. String oId = '',
  2. int userOId = 0,
  3. String userName = '',
  4. String nickname = '',
  5. String avatarURL = '',
  6. MetalList sysMetal = const [],
  7. ChatSource? via,
  8. String content = '',
  9. String md = '',
  10. RedPacketMessage? redpacket,
  11. WeatherMsg? weather,
  12. MusicMsg? music,
  13. String time = '',
  14. String type = ChatRoomMessageType.msg,
})

Implementation

ChatRoomMessage({
  this.oId = '',
  this.userOId = 0,
  this.userName = '',
  this.nickname = '',
  this.avatarURL = '',
  this.sysMetal = const [],
  ChatSource? via,
  this.content = '',
  this.md = '',
  this.redpacket,
  this.weather,
  this.music,
  this.time = '',
  this.type = ChatRoomMessageType.msg,
}) {
  this.via = via ?? ChatSource();
}