DownloadProgress class Offline

This model class is used to stream the download progress in OfflineManager.downloadRegion.

Annotations

Constructors

DownloadProgress({required int loadedBytes, required int loadedTiles, required bool totalTilesEstimated, required int totalTiles, required OfflineRegion region, required bool downloadCompleted})
Create a new DownloadProgress instance.
const

Properties

downloadCompleted bool
Set to true once the download has completed sucessfully.
final
hashCode int
The hash code for this object.
no setteroverride
loadedBytes int
The amount of bytes that are already downloaded.
final
loadedTiles int
The amount of tiles that are already downloaded.
final
progress double?
The current progress, returns null if totalTiles is unknown.
no setter
region OfflineRegion
The OfflineRegion object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalTiles int
The total amount of tiles in this region.
final
totalTilesEstimated bool
Weather the totalTiles value is an estimated or precise value.
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