createFileMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createFileMessage({
  1. required String filePath,
  2. required String fileName,
  3. dynamic inputElement,
})
override

发送文件消息

Implementation

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