readContent static method
Implementation
static Future<EpubContent> readContent(EpubContentRef contentRef) async {
final result = EpubContent(
await readTextContentFiles(contentRef.html),
await readTextContentFiles(contentRef.css),
await readByteContentFiles(contentRef.images),
await readByteContentFiles(contentRef.fonts),
);
await Future.forEach(contentRef.allFiles.keys, (String key) async {
if (!result.allFiles.containsKey(key)) {
result.allFiles[key] =
await readByteContentFile(contentRef.allFiles[key]!);
}
});
return result;
}