Message constructor

Message(
  1. MessageStanza messageStanza,
  2. Jid? to,
  3. Jid? from,
  4. String? text,
  5. DateTime time, {
  6. String? stanzaId = '',
  7. String? threadId = '',
  8. bool isForwarded = false,
  9. bool? isDelayed,
  10. String? queryId,
  11. String? messageId,
  12. MessageStanzaType? type,
  13. ChatState? chatState,
})

Implementation

Message(this.messageStanza, this.to, this.from, this.text, this.time,
    {String? stanzaId = '',
    String? threadId = '',
    bool isForwarded = false,
    bool? isDelayed,
    String? queryId,
    String? messageId,
    MessageStanzaType? type,
    ChatState? chatState}) {
  _stanzaId = stanzaId;
  _threadId = threadId;
  _isForwarded = isForwarded;
  _isDelayed = isDelayed;
  _queryId = queryId;
  _messageId = messageId;
  _type = type;
  _chatState = chatState;
}