createCustomMessage method

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

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createCustomMessage({required String data, String? desc, String? extension}) async {
  return createMessage(type: "custom", params: {"data": data, "desc": desc ?? "", "extension": extension ?? ""});
}