RecoveredRegion class

A mixture between BaseRegion and DownloadableRegion containing all the salvaged data from a recovered download

See RootRecovery for information about the recovery system.

The availability of bounds, line, center & radius depend on the represented type of the recovered region. Use toDownloadable to restore a valid DownloadableRegion.

Constructors

RecoveredRegion({required int id, required String storeName, required DateTime time, required int minZoom, required int maxZoom, required int start, required int end, required LatLngBounds? bounds, required LatLng? center, required List<LatLng>? line, required double? radius})
A mixture between BaseRegion and DownloadableRegion containing all the salvaged data from a recovered download

Properties

bounds → LatLngBounds?
Corresponds to RectangleRegion.bounds
final
center → LatLng?
Corrresponds to CircleRegion.center
final
end int
Corresponds to DownloadableRegion.end
final
hashCode int
The hash code for this object.
no setterinherited
id int
A unique ID created for every bulk download operation
final
line List<LatLng>?
Corrresponds to LineRegion.line & CustomPolygonRegion.outline
final
maxZoom int
Corresponds to DownloadableRegion.maxZoom
final
minZoom int
Corresponds to DownloadableRegion.minZoom
final
radius double?
Corrresponds to LineRegion.radius & CircleRegion.radius
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
Corresponds to DownloadableRegion.start
final
storeName String
The store name originally associated with this download
final
time DateTime
The time at which this recovery was started
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDownloadable(TileLayer options, {Crs crs = const Epsg3857()}) DownloadableRegion<BaseRegion>
Convert this region into a DownloadableRegion
toRegion() BaseRegion
Convert this region into a BaseRegion
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited