createCustomMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createCustomMessage({
  1. required String data,
  2. String desc = "",
  3. String extension = "",
})
override

Implementation

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