content property

  1. @override
Content get content
override

Plaintext message content (unencrypted body).

This contains the actual message payload (text, commands, etc.) in its original unencrypted form. Cannot be null (core payload of the instant message).

Implementation

@override
Content get content {
  Content? body = _content;
  if (body == null) {
    var info = this['content'];
    body = Content.parse(info);
    assert(body != null, 'message content error: $toMap()');
    _content = body;
  }
  return body!;
}
set content (Content body)

Implementation

set content(Content body) {
  remove('content');
  //setMap('content', body);
  _content = body;
}