fraction property
double?
get
fraction
Completed fraction between 0 and 1, or null when the total is unknown.
Implementation
double? get fraction {
final total = totalBytes;
if (total == null || total <= 0) {
return null;
}
return receivedBytes / total;
}