extractCurrentPageText method

Future<EpubTextExtractRes> extractCurrentPageText()

Extracts text content from current page

Implementation

Future<EpubTextExtractRes> extractCurrentPageText() async {
  checkEpubLoaded();
  pageTextCompleter = Completer<EpubTextExtractRes>();
  await webViewController?.evaluateJavascript(source: 'getCurrentPageText()');
  return pageTextCompleter.future;
}