RecoveredRegion class
A mixture between BaseRegion and DownloadableRegion containing all the salvaged data from a recovered download
How does recovery work? At the start of a download, a file is created including information about the download. At the end of a download or when a download is correctly cancelled, this file is deleted. However, if there is no ongoing download (controlled by an internal variable) and the recovery file exists, the download has obviously been stopped incorrectly, meaning it can be recovered using the information within the recovery file.
The availability of bounds, line, center & radius depend on the type of the recovered region.
Should avoid manual construction. Use toDownloadable to restore a valid DownloadableRegion.
Properties
- bounds → LatLngBounds?
-
The bounds for a rectangular region
final
- center → LatLng?
-
The center of a circular region
final
- end → int?
-
Optionally skip a number of tiles 'at the end' of a region
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> ? -
The line making a line-based region
final
- maxZoom → int
-
The maximum zoom level to fetch tiles for
final
- minZoom → int
-
The minimum zoom level to fetch tiles for
final
- parallelThreads → int
-
The number of download threads allowed to run simultaneously
final
- preventRedownload → bool
-
Whether to skip downloading tiles that already exist
final
- radius → double?
-
The radius of a circular region
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seaTileRemoval → bool
-
Whether to remove tiles that are entirely sea
final
- start → int
-
Optionally skip past a number of tiles 'at the start' of a region
final
- storeName → String
-
The store name originally associated with this download.
final
- time → DateTime
-
The time at which this recovery was started
final
- type → RegionType
-
The shape that this region conforms to
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDownloadable(
TileLayer options, {Crs crs = const Epsg3857(), dynamic errorHandler(Object?)?}) → DownloadableRegion< List< Object> > - Convert this region into a downloadable region
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited