DownloadPause constructor

const DownloadPause({
  1. required String remotePath,
  2. required bool isPaused,
})

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:

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});