UEpubReader constructor
const
UEpubReader({
- String? filePath,
- Uint8List? bytes,
- String? url,
- String? asset,
- UEpubController? controller,
- UDocAnnotationController? annotations,
- int initialChapter = 0,
- String? title,
- bool showToolbar = true,
- bool showBottomBar = true,
- bool showSidebar = true,
- bool showBackButton = false,
- bool allowSelection = true,
- bool allowCopy = true,
- bool enableMarkup = true,
- bool enableDrawing = true,
- UDocDrawController? drawController,
- List<
UDocMarkupKind> markupKinds = UDocMarkupKind.values, - String? annotationData,
- String? annotationStorageKey,
- bool persistAnnotations = true,
- void onAnnotationsChanged(
- String href
- UDocNoteDisplay noteDisplay = UDocNoteDisplay.badge,
- UDocWatermark? watermark,
- bool secure = false,
- bool restorePosition = true,
- List<
Widget> actions = const <Widget>[], - void onChapterChanged(
- int chapterIndex
- VoidCallback? onBack,
- 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");