DownloadPause class
Represents the pause state of a specific download operation.
This class is emitted by the StorageDownload system to indicate whether
a download has been paused or resumed. It contains:
- the remotePath of the file involved,
- a boolean isPaused indicating the pause state.
This model is useful for keeping UI elements (e.g. play/pause buttons) or background processes in sync with the current download state.
Example:
DownloadPause(
remotePath: 'videos/lecture.mp4',
isPaused: true,
);
Constructors
- DownloadPause({required String remotePath, required bool isPaused})
-
Represents the pause state of a specific download operation.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPaused → bool
-
Whether the download is currently paused (
true) or active (false).final -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- remotePath → String
-
The full remote path of the file associated with this pause state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.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