DownloadProgressCallback typedef

DownloadProgressCallback = void Function(String url, int current, int total, double percentage)

ダウンロード進捗を報告するためのコールバック

url ダウンロード中のURLまたはリソース識別子 current 現在のダウンロード進捗(バイト数) total ダウンロードの総サイズ(バイト数) percentage 現在の進捗率(0-100の範囲)

Implementation

typedef DownloadProgressCallback = void Function(
  String url,
  int current,
  int total,
  double percentage,
);