EpubView constructor

const EpubView({
  1. required EpubController controller,
  2. dynamic onHighlightTap(
    1. SelectedTextModel selectedTextModel
    )?,
  3. dynamic paragraphIndexOnDispose(
    1. int paragraphIndex
    )?,
  4. ExternalLinkPressed? onExternalLinkPressed,
  5. void onChapterChanged(
    1. EpubChapterViewValue? value
    )?,
  6. void onDocumentLoaded(
    1. EpubBook document
    )?,
  7. void onDocumentError(
    1. Exception? error
    )?,
  8. EpubViewBuilders builders = const EpubViewBuilders<DefaultBuilderOptions>(options: DefaultBuilderOptions()),
  9. bool shrinkWrap = false,
  10. Key? key,
})

Implementation

const EpubView({
  required this.controller,
  this.onHighlightTap,
  this.paragraphIndexOnDispose,
  this.onExternalLinkPressed,
  this.onChapterChanged,
  this.onDocumentLoaded,
  this.onDocumentError,
  this.builders = const EpubViewBuilders<DefaultBuilderOptions>(
    options: DefaultBuilderOptions(),
  ),
  this.shrinkWrap = false,
  super.key,
});