Epub.fromFile constructor
Epub.fromFile(
- File file
Implementation
Epub.fromFile(File file)
: assert(file.path._extension == 'epub'),
zip = ZipDecoder().decodeBytes(file.readAsBytesSync()) {
_metadata = Lazy(_initializeMetadata);
_items = Lazy(_initializeItems);
_sections = Lazy(_initializeSections);
}