resumable_downloader library

Classes

DownloadManager
Manages concurrent file downloads with queuing, retries, progress reporting, cancellation, and strategies for handling existing files.
DownloadProgress
Represents the current state of a download operation. receivedByte is the number of bytes already downloaded, and totalByte is the total number of bytes expected to be downloaded. The progress property returns this ratio as a double between 0.0 and 1.0. The receivedKB and totalKB properties return Kilobytes The receivedMB and totalMB properties return megabytes The receivedGB and totalGB properties return gigabytes
LogRecord
Represents a log message generated by the DownloadManager.
QueueItem
Represents a single item in the download queue managed by DownloadManager.

Enums

FileExistsStrategy
Defines the strategy to employ when a file with the target name already exists at the download location during a download request.
LogLevel

Extensions

DownloadProgressExtension on DownloadProgress
Extension for DownloadProgress that provides additional methods for converting the download progress into different units String. For example, it can convert the download progress into kilobytes, megabytes, or gigabytes.

Typedefs

LogCallback = void Function(LogRecord log)
A callback used by the DownloadManager to emit log messages.