UEpubReader constructor

const UEpubReader({
  1. String? filePath,
  2. Uint8List? bytes,
  3. String? url,
  4. String? asset,
  5. UEpubController? controller,
  6. UDocAnnotationController? annotations,
  7. int initialChapter = 0,
  8. String? title,
  9. bool showToolbar = true,
  10. bool showBottomBar = true,
  11. bool showSidebar = true,
  12. bool showBackButton = false,
  13. bool allowSelection = true,
  14. bool allowCopy = true,
  15. bool allowShare = true,
  16. bool enableMarkup = true,
  17. bool enableDrawing = true,
  18. UDocDrawController? drawController,
  19. List<UDocMarkupKind> markupKinds = UDocMarkupKind.values,
  20. String? annotationData,
  21. String? annotationStorageKey,
  22. bool persistAnnotations = true,
  23. void onAnnotationsChanged(
    1. String href
    )?,
  24. UDocNoteDisplay noteDisplay = UDocNoteDisplay.badge,
  25. UDocWatermark? watermark,
  26. bool secure = false,
  27. bool restorePosition = true,
  28. List<Widget> actions = const <Widget>[],
  29. void onChapterChanged(
    1. int chapterIndex
    )?,
  30. VoidCallback? onBack,
  31. Key? key,
})

Implementation

const UEpubReader({
  this.filePath,
  this.bytes,
  this.url,
  this.asset,
  this.controller,
  this.annotations,
  this.initialChapter = 0,
  this.title,
  this.showToolbar = true,
  this.showBottomBar = true,
  this.showSidebar = true,
  this.showBackButton = false,
  this.allowSelection = true,
  this.allowCopy = true,
  this.allowShare = true,
  this.enableMarkup = true,
  this.enableDrawing = true,
  this.drawController,
  this.markupKinds = UDocMarkupKind.values,
  this.annotationData,
  this.annotationStorageKey,
  this.persistAnnotations = true,
  this.onAnnotationsChanged,
  this.noteDisplay = UDocNoteDisplay.badge,
  this.watermark,
  this.secure = false,
  this.restorePosition = true,
  this.actions = const <Widget>[],
  this.onChapterChanged,
  this.onBack,
  super.key,
}) : assert(filePath != null || bytes != null || url != null || asset != null || controller != null, "Provide one EPUB source");