DownloadProgress class

Represents the progress of a model download operation.

Tracks download progress with bytes downloaded, total bytes, percentage, and speed. Used in download progress callbacks to provide real-time download status.

Constructors

DownloadProgress({required int bytesDownloaded, required int totalBytes, required double percentage, String speed = ''})
const

Properties

bytesDownloaded int
Number of bytes successfully downloaded
final
downloaded int
Alias for bytesDownloaded for backward compatibility
no setter
hashCode int
The hash code for this object.
no setterinherited
isComplete bool
no setter
percentage double
Percentage of download completed (0.0 to 100.0)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed String
Current download speed as a formatted string
final
total int
Alias for totalBytes for backward compatibility
no setter
totalBytes int
Total size of the download in bytes
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.
inherited