createTextMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createTextMessage({
  1. required String text,
})
override

创建文本消息

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createTextMessage({required String text}) async {
  Map<String, dynamic> param = {
    "text": text,
  };
  var resp = V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createTextMessage",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("createTextMessage", param, resp.toLogString());
  return resp;
}