UploadPause class

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

Constructors

UploadPause({required String resourceId, required bool isPaused})
Represents the pause state of a file being uploaded.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isPaused bool
Whether the upload of the file is currently paused.
final
resourceId String
Unique identifier for the file being affected by a pause/resume action.
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