PagingWidget constructor

const PagingWidget({
  1. Key? key,
  2. required String htmlContent,
  3. EpubContentParser? contentParser,
  4. String bookId = '',
  5. int chapterIndex = 0,
  6. String rawFontFamily = 'Segoe',
  7. Color accentColor = Colors.indigoAccent,
  8. Color backgroundColor = Colors.white,
  9. TextStyle style = const TextStyle(color: Colors.black, fontSize: 30),
  10. required dynamic handlerCallback(
    1. PagingTextHandler handler
    ),
  11. required VoidCallback onTextTap,
  12. required dynamic onPageFlip(
    1. int,
    2. int
    ),
  13. required dynamic onLastPage(
    1. int,
    2. int
    ),
  14. dynamic onFirstPageBack(
    1. int,
    2. int
    )?,
  15. int starterPageIndex = 0,
  16. required String chapterTitle,
  17. required int totalChapters,
  18. Widget? lastWidget,
})

Implementation

const PagingWidget({
  super.key,
  required this.htmlContent,
  this.contentParser,
  this.bookId = '',
  this.chapterIndex = 0,
  this.rawFontFamily = 'Segoe',
  this.accentColor = Colors.indigoAccent,
  this.backgroundColor = Colors.white,
  this.style = const TextStyle(
    color: Colors.black,
    fontSize: 30,
  ),
  required this.handlerCallback(PagingTextHandler handler),
  required this.onTextTap,
  required this.onPageFlip,
  required this.onLastPage,
  this.onFirstPageBack,
  this.starterPageIndex = 0,
  required this.chapterTitle,
  required this.totalChapters,
  this.lastWidget,
});