prevChapter method

dynamic prevChapter()

Implementation

prevChapter() async {
  ///Set page to initial
  await bookProgress.setCurrentPageIndex(bookId, 0);

  var index = bookProgress.getBookProgress(bookId).currentChapterIndex ?? 0;

  if (index != 0) {
    reLoadChapter(index: index - 1);
  }
}