Section class

References an Item to be read as main content from the EPUB.

Constructors

Section({required Epub source, required Item content, required int readingOrder})
Creates a group of text and audio that are part of an EPUB main content.

Properties

audio → Uint8List?
Audio version of the section, represented in bytes as Uint8List.
no setter
audioDuration → Duration?
Duration of Section.audio, as specified in _source.metadata.
no setter
content → Item
Representation of XHTML text content.
final
hasAudio → bool
Wheter this section has audio version.
no setter
hashCode → int
The hash code for this object.
no setterinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
readingOrder → int
Position relative to the other sections in the _source.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
smilParallels → List<SmilParallel>
Parallels declared in the Media Overlay file.
no setter
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

getParallelAtTime(Duration currentTime) → SmilParallel?
Returns the SmilParallel corresponding to currentTime.
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