Item class

Representation of a resource (file) inside the EPUB.

Specifically, the <item> tag in EPUB Manifest.

Constructors

Item({required String id, required String href, required ItemMediaType mediaType, required Epub source, Item? mediaOverlay, List<ItemProperty> properties = const []})
Item.fromXmlElement(XmlElement xml, {required Epub source, Item? mediaOverlay})
Creates an Item from an XML <item> tag inside EPUB <manifest>.
factory

Properties

fileContent Uint8List
File content from href in bytes, represented as Uint8List.
no setter
fileName String
Name of the represented file.
no setter
hashCode int
The hash code for this object.
no setterinherited
href String
Relative path of the represented file.
final
id String
Unique identifier in the whole EPUB.
final
mediaOverlay Item?
Representation of audio synchronized with the EPUB Content.
final
mediaType ItemMediaType
Media type of the represented file.
final
properties List<ItemProperty>
Indicators that this item has some special use case, such as cover image, svg, etc.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
refinements List<DocumentMetadata>
Additional information for this item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

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