DownloadProgress class final
A snapshot of a DownloadTask, as emitted by DownloadTask.progress.
- Annotations
-
- @immutable
Constructors
- DownloadProgress({required DownloadState state, required int bytesTransferred, required int totalBytes})
-
Creates a snapshot. The package creates them; you need this only in tests.
const
Properties
- bytesTransferred → int
-
The bytes written to the file so far.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → DownloadState
-
The state of the task.
final
- totalBytes → int
-
The size of the object; 0 until its metadata is read.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override