removeHighlight method

void removeHighlight({
  1. required String cfi,
})

Adds a mark annotation Removes a highlight from epub viewer

Implementation

// addMark({required String cfi}) {
//   checkEpubLoaded();
//   webViewController?.evaluateJavascript(source: 'addMark("$cfi")');
// }

///Removes a highlight from epub viewer
void removeHighlight({required String cfi}) {
  checkEpubLoaded();
  webViewController?.callAsyncJavaScript(
    functionBody: 'removeHighlight(cfi)',
    arguments: {'cfi': cfi},
  );
}