getContentFileEntry method
ArchiveFile
getContentFileEntry()
inherited
Implementation
ArchiveFile getContentFileEntry() {
var contentFilePath = ZipPathUtils.combine(
epubBookRef.Schema!.ContentDirectoryPath, FileName);
var contentFileEntry = epubBookRef.EpubArchive()!
.files
.firstWhereOrNull((ArchiveFile x) => x.name == contentFilePath);
if (contentFileEntry == null) {
throw Exception(
'EPUB parsing error: file $contentFilePath not found in archive.');
}
return contentFileEntry;
}