StreamProgress class

Snapshot of a transfer stream's progress.

Constructors

StreamProgress({required ByteConverter transferred, required DataRate instantaneous, required DataRate average, required Duration elapsed, required ByteConverter? total})
Creates a progress snapshot for a transfer stream.

Properties

average DataRate
Average data rate since the beginning.
final
elapsed Duration
Elapsed time since the start.
final
eta Duration?
Estimated time to completion based on average. Returns null when the average rate is zero or total is unknown.
no setter
hashCode int
The hash code for this object.
no setterinherited
instantaneous DataRate
Instantaneous data rate over the last sampling window.
final
progressFraction double?
Fractional completion in 0,1, or null if total is unknown or zero.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total ByteConverter?
Optional known total for computing percentage and ETA.
final
transferred ByteConverter
Total bytes transferred so far.
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