ProgressCallback typedef

ProgressCallback = void Function(int sent, int total)

Callback type to track upload or download progress. sent is the number of bytes sent or received. total is the total number of bytes.

Implementation

typedef ProgressCallback = void Function(int sent, int total);