download_callbacks library

Classes

DownloadCallbacks
The download callbacks 'container'

Typedefs

OnDownloadCompleted = dynamic Function(String path)
path the output file absolute path
OnDownloadError = dynamic Function(String errorMessage)
errorMessage if download did not succeed for some reason, errorMessage will contains the failure reason e.g. the url is not correct 404 or the file is not accessible 400
OnProgress = dynamic Function(String? fileName, double progress)
fileName the output file name that will be stored in downloads directory progress the download progress