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. bool showHandles = true,
  9. void onTap(
    1. Offset point
    )?,
  10. void onLongPress(
    1. Offset point
    )?,
  11. void onDragSelect(
    1. Offset point
    )?,
  12. void onSelectStart(
    1. Offset point
    )?,
  13. void onSelectUpdate(
    1. Offset point
    )?,
  14. VoidCallback? onSelectEnd,
  15. void onHandleDrag(
    1. bool isStart,
    2. Offset point
    )?,
  16. 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.showHandles = true,
  this.onTap,
  this.onLongPress,
  this.onDragSelect,
  this.onSelectStart,
  this.onSelectUpdate,
  this.onSelectEnd,
  this.onHandleDrag,
  super.key,
});