LibraryDownloader constructor
LibraryDownloader({
- required String gameDir,
- DownloadProgressCallback? onDownloadProgress,
- OperationProgressCallback? onOperationProgress,
- 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;