getCurrentLocation method

Future<EpubLocation> getCurrentLocation()

Returns current location of epub viewer

Implementation

Future<EpubLocation> getCurrentLocation() async {
  checkEpubLoaded();
  currentLocationCompleter = Completer<EpubLocation>();
  webViewController?.evaluateJavascript(source: 'getCurrentLocation()');
  return await currentLocationCompleter.future;
}