DownloadProgress class

Represents the progress of an ongoing or finished (if percentageProgress is 100%) bulk download

Should avoid manual construction, use named constructor DownloadProgress.empty to generate placeholders.

Constructors

DownloadProgress.empty()
Create an empty placeholder (all values set to 0 or empty) DownloadProgress, useful for initialData in a StreamBuilder

Properties

attemptedTiles int
Number of attempted tile downloads, including failure
no setter
averageTPS double
Retrieve the average number of tiles per second that are being downloaded
no setter
bufferMode DownloadBufferMode
The DownloadBufferMode in use
final
downloadID int
Identification number of the corresponding download
final
duration Duration
Elapsed duration since start of download process
final
estRemainingDuration Duration
Estimate remaining duration until the end of the download process
no setter
estTotalDuration Duration
Estimate duration for entire download process, using averageTPS
no setter
existingTiles int
Number of tiles not downloaded because they already existed (these also make up part of successfulTiles)
final
existingTilesDiscount double
Percentage of tiles saved by using redownload prevention (ie. discount)
no setter
failedTiles List<String>
List of URLs of failed tiles
final
hashCode int
The hash code for this object.
no setteroverride
maxTiles int
Approximate total number of tiles to be downloaded
final
percentageProgress double
Approximate percentage of process complete
no setter
persistedSize double
Number of kibibytes successfully persisted (only significant when using buffering)
final
persistedTiles int
Number of tiles persisted successfully (only significant when using buffering)
final
remainingTiles int
Approximate number of tiles remaining to be downloaded
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seaTiles int
Number of tiles removed because they were entirely sea (these also make up part of successfulTiles)
final
seaTilesDiscount double
Percentage of tiles saved by using sea tile removal (ie. discount)
no setter
successfulSize double
Number of kibibytes successfully downloaded
final
successfulTiles int
Number of tiles downloaded successfully
final
tileImage MemoryImage?
Get the ImageProvider of the last tile that was downloaded
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.
override