EpubController class
Constructors
Properties
-
chapters
↔ List<
EpubChapter> -
List of chapters from epub
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchResultCompleter ↔ Completer
-
getter/setter pair
- webViewController ↔ InAppWebViewController?
-
getter/setter pair
Methods
-
addHighlight(
{required String cfi, Color color = Colors.yellow, double opacity = 0.3}) → dynamic - Adds a highlight to epub viewer
-
checkEpubLoaded(
) → dynamic -
display(
{required String cfi}) → dynamic - Move epub view to specific area using Cfi string or chapter href
-
getChapters(
) → List< EpubChapter> - Returns list of EpubChapter from epub, should be called after onChaptersLoaded callback, otherwise returns empty list
-
getCurrentLocation(
) → Future< EpubLocation> - Returns current location of epub viewer
-
next(
) → dynamic - Moves to next page in epub view
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseChapters(
) → Future< List< EpubChapter> > - Parsing chapters list form epub
-
prev(
) → dynamic - Moves to previous page in epub view
-
removeHighlight(
{required String cfi}) → dynamic - Removes a highlight from epub viewer
-
search(
{required String query}) → Future< List< EpubSearchResult> > - Search in epub using query string Returns a list of EpubSearchResult
-
setFlow(
{required EpubFlow flow}) → dynamic - Set EpubFlow value
-
setFontSize(
{required double fontSize}) → dynamic - Adjust font size in epub viewer
-
setManager(
{required EpubManager manager}) → dynamic - Set EpubManager value
-
setSpread(
{required EpubSpread spread}) → dynamic - Set EpubSpread value
-
setWebViewController(
InAppWebViewController controller) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited