ProgressCallback typedef

ProgressCallback = void Function(int transferred, int total)

Reports transfer progress. total is -1 when the length is unknown.

Implementation

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