UPdfPageView constructor

const UPdfPageView({
  1. required UPdfController controller,
  2. required int pageIndex,
  3. required double displayScale,
  4. UDocColorMode colorMode = UDocColorMode.normal,
  5. List<UDocSearchHit> highlights = const <UDocSearchHit>[],
  6. UDocSearchHit? activeHit,
  7. List<Rect> selectionRects = const <Rect>[],
  8. Color selectionColor = const Color(0x472196F3),
  9. bool showHandles = true,
  10. bool selectable = true,
  11. void onTap(
    1. Offset point
    )?,
  12. void onMouseTap(
    1. int count,
    2. Offset point
    )?,
  13. void onLongPress(
    1. Offset point
    )?,
  14. void onDragSelect(
    1. Offset point
    )?,
  15. void onSelectStart(
    1. Offset point
    )?,
  16. void onSelectUpdate(
    1. Offset point
    )?,
  17. VoidCallback? onSelectEnd,
  18. void onHandleDrag(
    1. bool isStart,
    2. Offset point
    )?,
  19. Key? key,
})

Implementation

const UPdfPageView({
  required this.controller,
  required this.pageIndex,
  required this.displayScale,
  this.colorMode = UDocColorMode.normal,
  this.highlights = const <UDocSearchHit>[],
  this.activeHit,
  this.selectionRects = const <Rect>[],
  this.selectionColor = const Color(0x472196F3),
  this.showHandles = true,
  this.selectable = true,
  this.onTap,
  this.onMouseTap,
  this.onLongPress,
  this.onDragSelect,
  this.onSelectStart,
  this.onSelectUpdate,
  this.onSelectEnd,
  this.onHandleDrag,
  super.key,
});