listArchiveEntryPaths function
The entry paths inside a pub.dev package archive (a gzip-compressed tar), without extracting any file contents.
Implementation
List<String> listArchiveEntryPaths(List<int> archiveBytes) {
return _decodePackageArchive(archiveBytes).files
.map((file) => file.name)
.toList();
}