DownloadProgress constructor
Represents the current progress of an active download operation.
This model is typically emitted by the StorageDownload system to indicate
how much of a file has been downloaded so far. It includes:
- the remotePath of the file being downloaded,
- the progress as a value between
0.0and100.0(inclusive).
This class is commonly used for UI updates (e.g. progress bars), download tracking, or logs.
Example:
DownloadProgress(
remotePath: 'media/files/sample.pdf',
progress: 42.0,
);
Implementation
const DownloadProgress({required this.remotePath, required this.progress});