DownloadCallback typedef Null safety

DownloadCallback = void Function(String id, DownloadTaskStatus status, int progress)

A signature function for download progress updating callback

  • id: unique identifier of a download task
  • status: current status of a download task
  • progress: current progress value of a download task, the value is in range of 0 and 100


typedef void DownloadCallback(
    String id, DownloadTaskStatus status, int progress);