UEpubBlockView constructor
const
UEpubBlockView({
- required UEpubBlock block,
- required UEpubTypography typography,
- required UDocColorMode colorMode,
- required UEpubController controller,
- required Future<
void> onLinkTapped(- String href
- int blockIndex = 0,
- int sliceStart = 0,
- int sliceEnd = -1,
- List<
UDocMarkup> markups = const <UDocMarkup>[], - String? activeMarkupId,
- List<
(int, int)> searchRanges = const <(int, int)>[], - (int, int)? activeSearch,
- UDocNoteDisplay noteDisplay = UDocNoteDisplay.badge,
- bool onMarkupTap(
- UDocMarkup markup,
- Offset globalPosition
- void onImageTap(
- String href
- void onRegister(
- String key,
- UEpubSlice slice,
- SelectionListenerNotifier notifier
- void onUnregister(
- String key,
- SelectionListenerNotifier notifier
- List<
UDocShape> shapes = const <UDocShape>[], - UDocDrawController? drawTools,
- bool drawing = false,
- void onShapeAdd(
- UDocShape shape
- void onShapeUpdate(
- UDocShape shape
- void onShapeRemove(
- String href
- Key? key,
Implementation
const UEpubBlockView({
required this.block,
required this.typography,
required this.colorMode,
required this.controller,
required this.onLinkTapped,
this.blockIndex = 0,
this.sliceStart = 0,
this.sliceEnd = -1,
this.markups = const <UDocMarkup>[],
this.activeMarkupId,
this.searchRanges = const <(int, int)>[],
this.activeSearch,
this.noteDisplay = UDocNoteDisplay.badge,
this.onMarkupTap,
this.onImageTap,
this.onRegister,
this.onUnregister,
this.shapes = const <UDocShape>[],
this.drawTools,
this.drawing = false,
this.onShapeAdd,
this.onShapeUpdate,
this.onShapeRemove,
super.key,
});