OnUploadProgress typedef

OnUploadProgress = void Function(int total, int uploaded, double percentComplete)

uploaded Total bytes uploaded total Total size of file in bytes percentComplete Percent uploaded (an integer between 0-100), basically uploaded/total rounded to the nearest integer

Implementation

typedef OnUploadProgress = void Function(
    int total, int uploaded, double percentComplete);