EpubView constructor

const EpubView({
  1. required EpubController controller,
  2. ChaptersBuilder? itemBuilder,
  3. ExternalLinkPressed? onExternalLinkPressed,
  4. Duration? loaderSwitchDuration,
  5. Widget? loader,
  6. Widget errorBuilder(
    1. Exception? error
    )?,
  7. Widget dividerBuilder(
    1. EpubChapter value
    )?,
  8. void onChange(
    1. EpubChapterViewValue? value
    )?,
  9. void onDocumentLoaded(
    1. EpubBook? document
    )?,
  10. void onDocumentError(
    1. Exception? error
    )?,
  11. EdgeInsetsGeometry chapterPadding = const EdgeInsets.all(8),
  12. EdgeInsetsGeometry paragraphPadding = const EdgeInsets.symmetric(horizontal: 16),
  13. TextStyle textStyle = _defaultTextStyle,
  14. Key? key,
})

Implementation

const EpubView({
  required this.controller,
  this.itemBuilder,
  this.onExternalLinkPressed,
  this.loaderSwitchDuration,
  this.loader,
  this.errorBuilder,
  this.dividerBuilder,
  this.onChange,
  this.onDocumentLoaded,
  this.onDocumentError,
  this.chapterPadding = const EdgeInsets.all(8),
  this.paragraphPadding = const EdgeInsets.symmetric(horizontal: 16),
  this.textStyle = _defaultTextStyle,
  Key? key,
}) : super(key: key);