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 {
  return V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createFileMessage",
        buildMessageMangerParam(
          {
            "filePath": filePath,
            "fileName": fileName,
          },
        ),
      ),
    ),
  );
}