EpubViewer constructor

const EpubViewer({
  1. Key? key,
  2. required EpubController epubController,
  3. required String epubUrl,
  4. Map<String, String>? headers,
  5. String? initialCfi,
  6. ValueChanged<List<EpubChapter>>? onChaptersLoaded,
  7. VoidCallback? onEpubLoaded,
  8. ValueChanged<EpubLocation>? onRelocated,
  9. ValueChanged<EpubTextSelection>? onTextSelected,
  10. EpubDisplaySettings? displaySettings,
  11. ContextMenu? selectionContextMenu,
})

Implementation

const EpubViewer({
  super.key,
  required this.epubController,
  required this.epubUrl,
  this.headers,
  this.initialCfi,
  this.onChaptersLoaded,
  this.onEpubLoaded,
  this.onRelocated,
  this.onTextSelected,
  this.displaySettings,
  this.selectionContextMenu,
});