DownloadProgressEvent class final

Bytes are arriving.

Inheritance

Constructors

DownloadProgressEvent({required String operationId, required int bytesDone, required int bytesTotal, int sequence = 0, String? file, double? overallProgress})
Carry transfer counters and commons-owned overall progress.
const

Properties

bytesDone int
Bytes received so far.
final
bytesTotal int
Total bytes expected. Zero when the server did not report a length.
final
file String?
File currently being fetched, for multi-file downloads.
final
hashCode int
The hash code for this object.
no setterinherited
operationId String
Correlation id for this download.
final
overallProgress double?
Fraction of the whole download that is done, 0.0..1.0, as reported by commons (DownloadProgress.overall_progress). Null when commons has not yet reported a positive value — never re-derived from bytesDone/ bytesTotal (multi-file plans make that a per-file figure).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequence int
Monotonic per-operation event counter.
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