UploadPause constructor

const UploadPause({
  1. required String resourceId,
  2. required bool isPaused,
})

Represents the pause state of a file being uploaded.

This model is used to indicate whether the upload of a specific file has been paused or resumed. It is typically emitted by the StorageUpload system when a pause or resume action is triggered for a specific file.

The resourceId uniquely identifies the file, and isPaused indicates whether the file is currently paused (true) or active (false).

Example:

final pause = UploadPause(resourceId: 'file_456', isPaused: true);
print(pause.isPaused); // true

Implementation

const UploadPause({required this.resourceId, required this.isPaused});