nextChapter method
dynamic
nextChapter()
Implementation
nextChapter() async {
///Set page to initial
await bookProgress.setCurrentPageIndex(bookId, 0);
var index = bookProgress.getBookProgress(bookId).currentChapterIndex ?? 0;
if (index != chaptersList.length - 1) {
reLoadChapter(index: index + 1);
}
}