Epub class

Representation of an EPUB file.

This class provides methods to parse an EPUB file from bytes or from a file, and access its metadata, manifest items, and spine through Sections.

Constructors

Epub.fromBytes(Uint8List fileBytes)
Constructs an Epub instance from a list of bytes.
Epub.fromFile(File file)
Constructs an Epub instance from a File.

Properties

authors → List<String>
no setter
cover → Item?
no setter
hashCode → int
The hash code for this object.
no setterinherited
items → List<Item>
Resources (images, audio, text, etc.) of the EPUB file, as Items.
no setter
metadata → List<Metadata>
Metadata of the EPUB file, such as title, authors, media overlays, etc.
no setter
props → List<Object?>
The list of properties that are used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sections → List<Section>
Reading sections of the EPUB file in order.
no setter
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
title → String
no setter
zip → Archive
The decoded ZIP archive of the EPUB file.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited