success static method
创建成功响应
Implementation
static DownloadResponse<String> success({
required String filePath,
int? totalBytes,
}) {
return DownloadResponse<String>(
isSuccess: true,
filePath: filePath,
totalBytes: totalBytes,
data: filePath, // 将文件路径作为 data
);
}