send method

void send(
  1. String tid,
  2. String? tName,
  3. String content
)

发送消息

Implementation

void send(String tid, String? tName, String content) {
  _tempContent = content;
  _send(json.encode({
    "action": "add",
    "module": "message",
    "to": tid,
    "toName": tName,
    "type": "1",
    "content": content
  }));
}