PdfDownloadReportCallback typedef

PdfDownloadReportCallback = void Function(int downloaded, int total, Duration elapsedTime)

Callback function to report download status on completion.

downloaded is the number of bytes downloaded. total is the total number of bytes downloaded. elapsedTime is the time taken to download the file.

Implementation

typedef PdfDownloadReportCallback = void Function(
  int downloaded,
  int total,
  Duration elapsedTime,
);