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 {
  return V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createCustomMessage",
        buildMessageMangerParam(
          {
            "data": data,
            "desc": desc,
            "extension": extension,
          },
        ),
      ),
    ),
  );
}