getTitleFromXhtml method

dynamic getTitleFromXhtml()

Implementation

getTitleFromXhtml() {
  ///Listener for slider
  // controller.addListener(() {
  //   if (controller.position.userScrollDirection == ScrollDirection.forward &&
  //       showHeader == false) {
  //     showHeader = true;
  //     update();
  //   } else if (controller.position.userScrollDirection ==
  //           ScrollDirection.reverse &&
  //       showHeader) {
  //     showHeader = false;
  //     update();
  //   }
  // });

  if (epubBook.Title != null) {
    bookTitle = epubBook.Title!;
    updateUI();
  }
}