EpubController class

Constructors

EpubController()

Properties

chapters List<EpubChapter>
List of chapters from epub
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pageTextCompleter Completer<EpubTextExtractRes>
getter/setter pair
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
addUnderline({required String cfi}) → dynamic
Adds a underline annotation
checkEpubLoaded() → dynamic
display({required String cfi}) → dynamic
Move epub view to specific area using Cfi string or chapter href
extractCurrentPageText() Future<EpubTextExtractRes>
Extracts text content from current page
extractText({required dynamic startCfi, required dynamic endCfi}) Future<EpubTextExtractRes>
Extract text from a given cfi range,
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
Adds a mark annotation Removes a highlight from epub viewer
removeUnderline({required String cfi}) → dynamic
Removes a underline from epub viewer
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
Removes a mark from epub viewer Set EpubSpread value
setWebViewController(InAppWebViewController controller) → dynamic
toProgressPercentage(double progressPercent) → dynamic
Given a percentage moves to the corresponding page Progress percentage should be between 0.0 and 1.0
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited