PrismDownloadProgress class
Progress snapshot for a running download.
- Inheritance
-
- Object
- PrismDownloadEvent
- PrismDownloadProgress
Constructors
- PrismDownloadProgress({required int received, required int total, required double bytesPerSecond})
-
Creates a progress snapshot.
const
Properties
- bytesPerSecond → double
-
Measured throughput in bytes/second over the recent window.
final
- fraction → double?
-
Progress as a 0..1 fraction;
nullwhen the total is unknown.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isIndeterminate → bool
-
Whether the total size is known.
no setter
- received → int
-
Bytes received so far.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total → int
-
Total bytes, or
-1when the server did not send a content length.final
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