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
DownloadProgress.internal({required int downloadID, required int successfulTiles, required List<String> failedTiles, required int maxTiles, required double successfulSize, required int seaTiles, required int existingTiles, required Duration duration, required MemoryImage? tileImage, required InternalProgressTimingManagement progressManagement})
Avoid construction using this method. Use DownloadProgress.empty to generate empty placeholders where necessary.

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
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
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 successful tile downloads
final
tileImage MemoryImage?
Get the ImageProvider of the last tile that was downloaded
getter/setter pair

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