DownloadPause constructor
Represents the pause state of a specific download operation.
This class is emitted by the StorageDownload system to indicate whether
a download has been paused or resumed. It contains:
- the remotePath of the file involved,
- a boolean isPaused indicating the pause state.
This model is useful for keeping UI elements (e.g. play/pause buttons) or background processes in sync with the current download state.
Example:
DownloadPause(
remotePath: 'videos/lecture.mp4',
isPaused: true,
);
Implementation
const DownloadPause({required this.remotePath, required this.isPaused});