downloadProgress property

double? get downloadProgress

Implementation

double? get downloadProgress {
  if (totalBytesToDownload <= 0) {
    return null;
  }

  return (bytesDownloaded / totalBytesToDownload).clamp(0.0, 1.0);
}