PageView constructor

const PageView({
  1. Key? key,
  2. required PdfDocument document,
  3. required int pageIndex,
  4. RenderOptions options = const RenderOptions(),
  5. String? semanticLabel,
})

Creates a PageView.

document and pageIndex are required. pageIndex must be a valid page index for document; an out-of-range value causes a RangeError that is displayed as an error message.

Implementation

const PageView({
  super.key,
  required this.document,
  required this.pageIndex,
  this.options = const RenderOptions(),
  this.semanticLabel,
});