LibraryDownloader constructor

LibraryDownloader({
  1. required String gameDir,
  2. DownloadProgressCallback? onDownloadProgress,
  3. OperationProgressCallback? onOperationProgress,
  4. int progressReportRate = 10,
})

Creates a new library downloader.

gameDir The base game directory where libraries will be stored.

onDownloadProgress Optional callback for reporting individual file download progress.

onOperationProgress Optional callback for reporting overall operation progress.

progressReportRate How often to report progress, defaults to every 10%.

Implementation

LibraryDownloader({
  required super.gameDir,
  super.onDownloadProgress,
  super.onOperationProgress,
  super.progressReportRate,
}) : onDownloadProgress = null,
     onOperationProgress = null,
     progressReportRate = 10;