BaiduUploadHelper constructor

BaiduUploadHelper({
  1. required String accessToken,
  2. required String localPath,
  3. required String remotePath,
  4. required int memberLevel,
  5. int totalRetryCount = 10,
})

百度网盘上传的包装类

accessToken 百度网盘的token localPath 本地文件路径 remotePath 网盘文件路径 memberLevel 百度网盘的用户等级

Implementation

BaiduUploadHelper({
  required this.accessToken,
  required String localPath,
  required this.remotePath,
  required this.memberLevel,
  this.totalRetryCount = 10,
})  : localPath = File(localPath).absolute.path,
      lastModified = File(localPath).lastModifiedSync();