OfflineRegionStatus class

How far the download of an offline region got, from OfflineManager.getRegionStatus or DownloadProgress.status.

Resources are every file a region needs: its style, sources, sprites, glyphs and tiles.

Annotations

Constructors

OfflineRegionStatus({required OfflineRegionDownloadState downloadState, required int completedResourceCount, required int completedResourceSize, required int completedTileCount, required int completedTileSize, required int requiredResourceCount, required int requiredTileCount, required bool requiredResourceCountIsPrecise, required bool complete})
Create a new OfflineRegionStatus instance.
const

Properties

complete → bool
Whether every resource of the region is downloaded.
final
completedResourceCount → int
The number of resources that are already downloaded.
final
completedResourceSize → int
The size of the resources that are already downloaded, in bytes.
final
completedTileCount → int
The number of tiles that are already downloaded.
final
completedTileSize → int
The size of the tiles that are already downloaded, in bytes.
final
downloadState → OfflineRegionDownloadState
Whether the region downloads.
final
hashCode → int
The hash code for this object.
no setteroverride
progress → double?
The share of the required resources that are downloaded, from 0 to 1, or null while the number of required resources is not precise.
no setter
requiredResourceCount → int
The number of resources the region needs.
final
requiredResourceCountIsPrecise → bool
Whether requiredResourceCount and requiredTileCount are precise.
final
requiredTileCount → int
The number of tiles the region needs.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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