fraction property

double get fraction

Between 0 and 1.

Implementation

double get fraction => totalBytes == 0 ? 1 : receivedBytes / totalBytes;