UploadProgress class

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%)

Constructors

UploadProgress({required String resourceId, required double progress})
Represents the upload progress of a specific file resource.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
progress double
Upload progress, from 0.0 (not started) to 100.0 (completed).
final
resourceId String
Unique identifier for the file being uploaded.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited