KatbookEpubController class
Controller for the Katbook EPUB Reader.
- Inheritance
-
- Object
- ChangeNotifier
- KatbookEpubController
Constructors
Properties
-
no setter
- book → EpubBook?
-
no setter
- cssParser → EpubCssParser?
-
no setter
- currentPosition → ReadingPosition?
-
no setter
-
flatChapters
→ List<
ChapterNode> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
imageData
→ Map<
String, Uint8List> -
no setter
- isLoaded → bool
-
no setter
- loadingError → String?
-
no setter
-
paragraphs
→ List<
ParagraphElement> -
no setter
-
positionStream
→ Stream<
ReadingPosition> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tableOfContents
→ List<
ChapterNode> -
no setter
- title → String?
-
no setter
- totalParagraphs → int
-
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
override
-
jumpToChapter(
ChapterNode chapter) → void - Jump to a chapter.
-
jumpToIndex(
int index, {double offset = 0.0}) → void - Jump to a paragraph index.
-
jumpToPosition(
ReadingPosition position) → void - Jump to a saved position.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
openBook(
Uint8List data) → Future< bool> - Load an EPUB from bytes.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updatePositionFromScroll(
int visibleIndex, double offset) → void - Update position from scroll.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited