UploadProgress constructor

const UploadProgress({
  1. required String resourceId,
  2. required double progress,
})

Represents the upload progress of a specific file resource.

This model is used to track the progress of an individual file currently being uploaded by the StorageUpload system. It is typically emitted via a stream to provide real-time feedback on the current state of the upload.

The resourceId is a unique identifier for the file being uploaded, and progress is a value between 0.0 and 100.0 representing the percentage of completion.

Example:

final progress = UploadProgress(resourceId: 'file_123', progress: 0.6);
print(progress.progress); // 60 (i.e. 60%)

Implementation

const UploadProgress({required this.resourceId, required this.progress});