DownloadCallback typedef
DownloadCallback =
void Function(String id, DownloadTaskStatus status, int progress)
A signature function for download progress updating callback
id
: unique identifier of a download taskstatus
: current status of a download taskprogress
: current progress value of a download task, the value is in range of 0 and 100
Implementation
typedef void DownloadCallback(
String id, DownloadTaskStatus status, int progress);