EpubView constructor
const
EpubView({
- required EpubController controller,
- ChaptersBuilder? itemBuilder,
- ExternalLinkPressed? onExternalLinkPressed,
- Duration? loaderSwitchDuration,
- Widget? loader,
- Widget errorBuilder(
- Exception? error
- Widget dividerBuilder(
- EpubChapter value
- void onChange(
- EpubChapterViewValue? value
- void onDocumentLoaded(
- EpubBook? document
- void onDocumentError(
- Exception? error
- EdgeInsetsGeometry chapterPadding = const EdgeInsets.all(8),
- EdgeInsetsGeometry paragraphPadding = const EdgeInsets.symmetric(horizontal: 16),
- TextStyle textStyle = _defaultTextStyle,
- 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);