HyperRenderMode enum
Rendering mode for HyperViewer.
Controls whether content is parsed and laid out synchronously or asynchronously, and whether it is rendered as a single widget or via a virtualised ListView.
Values
- auto → const HyperRenderMode
-
Automatic selection: short content (< 10,000 chars) uses sync; longer content uses an async parse followed by virtualized layout.
- sync → const HyperRenderMode
-
Synchronous rendering on the main thread. Best for short snippets where parse time is negligible.
- virtualized → const HyperRenderMode
-
Asynchronous parse + ListView.builder-based virtualised rendering. Best for long documents (articles, emails, feeds).
- paged → const HyperRenderMode
-
Asynchronous parse + PageView.builder-based paginated rendering.
Each page corresponds to one document chunk (same chunking as virtualized) — this paginates one already-parsed HTML/Markdown/Delta document, it does not read
.epubfiles. Useful for reader UIs where the user swipes between pages rather than scrolling continuously; e.g. feeding it one EPUB chapter's XHTML at a time after you've unzipped and parsed the container yourself.Supply a HyperPageController via HyperViewer.pageController to programmatically jump to a page or observe page changes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
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
Constants
-
values
→ const List<
HyperRenderMode> - A constant List of the values in this enum, in order of their declaration.