createTextMessage method

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

创建文本消息

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createTextMessage({required String text}) async {
  return V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createTextMessage",
        buildMessageMangerParam(
          {
            "text": text,
          },
        ),
      ),
    ),
  );
}