Callback type to track upload or download progress. sent is the number of bytes sent or received. total is the total number of bytes.
sent
total
typedef ProgressCallback = void Function(int sent, int total);