Message constructor

Message({
  1. String msgId = '',
  2. String sequence = '0',
  3. int msgType = MsgType.text,
  4. int fromId = 0,
  5. String nickname = '',
  6. String avatar = '',
  7. int isRevoked = YesNo.no,
  8. String sendTime = '',
  9. Map<String, dynamic>? extra,
  10. Map<String, dynamic>? quote,
  11. int talkMode = TalkMode.private,
  12. int toFromId = 0,
  13. int status = 0,
})

Implementation

Message({
  this.msgId = '',
  this.sequence = '0',
  this.msgType = MsgType.text,
  this.fromId = 0,
  this.nickname = '',
  this.avatar = '',
  this.isRevoked = YesNo.no,
  this.sendTime = '',
  this.extra,
  this.quote,
  this.talkMode = TalkMode.private,
  this.toFromId = 0,
  this.status = 0,
});