ParagraphElement class
Represents a parsed paragraph element from the EPUB content.
Each paragraph contains the HTML element, its chapter association, and metadata needed for rendering and navigation.
Constructors
- ParagraphElement({required Element element, required int chapterIndex, required int absoluteIndex, bool isChapterStart = false, String? chapterTitle})
-
const
Properties
- absoluteIndex → int
-
The absolute index of this paragraph in the entire book.
final
- chapterIndex → int
-
Index of the chapter this paragraph belongs to.
final
- chapterTitle → String?
-
The chapter title (if this is a chapter start).
final
- containsImage → bool
-
Whether this element contains an image.
no setter
- element → Element
-
The HTML element containing the paragraph content.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerHtml → String
-
Get the inner HTML of this element.
no setter
- isChapterStart → bool
-
Whether this paragraph starts a new chapter.
final
- isHeading → bool
-
Whether this is a heading element.
no setter
- outerHtml → String
-
Get the outer HTML of this element.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tagName → String
-
Get the element's tag name (e.g., 'p', 'div', 'h1').
no setter
- text → String
-
Get the text content without HTML tags.
no setter
Methods
-
copyWith(
{Element? element, int? chapterIndex, int? absoluteIndex, bool? isChapterStart, String? chapterTitle}) → ParagraphElement - Create a copy with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited