recoverableRegions property
Future<List<Future<RecoveredRegion> > >
get
recoverableRegions
Get a list of all recoverable regions
See failedRegions for regions that correspond to failed/stopped downloads.
Implementation
Future<List<Future<RecoveredRegion>>> get recoverableRegions async =>
(await _metadata.listWithExists())
.map(
(e) => e is File && p.extension(e.path, 2) == '.recovery.ini'
? decode(e)
: null,
)
.whereType<Future<RecoveredRegion>>()
.toList();