readArchiveEntryAt method
Returns the Archive entry data at the given path
in this file.
Implementation
Future<ByteData?> readArchiveEntryAt(String path) async {
Archive? archive = await contentAsArchive();
if (archive == null) {
return null;
}
return waitTryOrNull(() async {
ArchiveEntry entry = await archive.entry(path);
ByteData bytes = await entry.read();
await entry.close();
return bytes;
});
}