send method

Future<Map?> send(
  1. String? text
)

将消息 text 发送

返回值 "status" : 0: 已发送; -1: 未发送, "info" 提供错误信息描述。

Implementation

Future<Map?> send(String? text) async {
  final Map? info = await _methodChannel.invokeMethod('send', {'text': text});
  // info: Map<String, String>
  //   Keys: status(-1/0), info?
  return info;
}