TaskProgress class final

One progress sample for a transfer.

Constructors

TaskProgress({required String taskId, required int bytesDownloaded, required int? totalBytes, required double bytesPerSecond, required Duration elapsed, required double? percentage})
Creates a progress sample.
const

Properties

bytesDownloaded → int
Bytes written to the destination so far.
final
bytesPerSecond → double
Smoothed transfer speed in bytes per second.
final
elapsed → Duration
Time since the transfer started.
final
fraction → double?
percentage expressed as a fraction from 0 to 1.
no setter
hashCode → int
The hash code for this object.
no setteroverride
percentage → double?
Completion in the range 0 to 100, or null when totalBytes is unknown.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
taskId → String
Task this sample belongs to.
final
totalBytes → int?
Total bytes expected, or null when the server omitted the 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.
override

Operators

operator ==(Object other) → bool
The equality operator.
override