UEpubBlockView constructor

const UEpubBlockView({
  1. required UEpubBlock block,
  2. required UEpubTypography typography,
  3. required UDocColorMode colorMode,
  4. required UEpubController controller,
  5. required Future<void> onLinkTapped(
    1. String href
    ),
  6. int blockIndex = 0,
  7. int sliceStart = 0,
  8. int sliceEnd = -1,
  9. List<UDocMarkup> markups = const <UDocMarkup>[],
  10. String? activeMarkupId,
  11. List<(int, int)> searchRanges = const <(int, int)>[],
  12. (int, int)? activeSearch,
  13. UDocNoteDisplay noteDisplay = UDocNoteDisplay.badge,
  14. bool onMarkupTap(
    1. UDocMarkup markup,
    2. Offset globalPosition
    )?,
  15. void onImageTap(
    1. String href
    )?,
  16. void onRegister(
    1. String key,
    2. UEpubSlice slice,
    3. SelectionListenerNotifier notifier
    )?,
  17. void onUnregister(
    1. String key,
    2. SelectionListenerNotifier notifier
    )?,
  18. List<UDocShape> shapes = const <UDocShape>[],
  19. UDocDrawController? drawTools,
  20. bool drawing = false,
  21. void onShapeAdd(
    1. UDocShape shape
    )?,
  22. void onShapeUpdate(
    1. UDocShape shape
    )?,
  23. void onShapeRemove(
    1. String href
    )?,
  24. 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,
});