UploadState class
Represents the current uploading state of a specific file resource.
This model is emitted by the StorageUpload system to reflect whether
a given file is actively being uploaded. It allows reactive UI elements
or controllers to respond to upload start/stop events.
The resourceId identifies the file uniquely, while isUploading indicates whether the upload is currently in progress.
Example:
final state = UploadState(resourceId: 'file_789', isUploading: true);
print(state.isUploading); // true
Constructors
- UploadState({required String resourceId, required bool isUploading})
-
Represents the current uploading state of a specific file resource.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUploading → bool
-
Whether the file is currently being uploaded (
true) or not (false).final - resourceId → String
-
Unique identifier for the file whose upload state is being tracked.
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