RootRecovery class

Manages the download recovery of all sub-stores of this RootDirectory

Is a singleton to ensure functioning as expected.

Constructors

RootRecovery(RootDirectory _rootDirectory)
Manages the download recovery of all sub-stores of this RootDirectory

Properties

failedRegions Future<List<RecoveredRegion>>
Get a list of all recoverable regions that correspond to failed/stopped downloads
no setter
hashCode int
The hash code for this object.
no setterinherited
recoverableRegions Future<List<Future<RecoveredRegion>>>
Get a list of all recoverable regions
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel(int id) Future<void>
Safely cancel a recoverable region
getFailedRegion(int id) Future<RecoveredRegion?>
Get a specific region, only if it needs recovering
getRecoverableRegion(int id) Future<RecoveredRegion?>
Get a specific region, even if it doesn't need recovering
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start({required int id, required String storeName, required DownloadableRegion region, required StoreDirectory storeDirectory}) Future<void>
Start a recoverable region
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance RootRecovery?
Manages the download recovery of all sub-stores of this RootDirectory
getter/setter pair