DownloadCallback typedef

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

Signature for a function which is called when the download state of a task with id changes.

Implementation

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