PdfView constructor

const PdfView({
  1. required PdfController controller,
  2. void onPageChanged(
    1. int page
    )?,
  3. void onDocumentLoaded(
    1. PdfDocument document
    )?,
  4. void onDocumentError(
    1. Object error
    )?,
  5. PdfViewBuilders builders = const PdfViewBuilders<DefaultBuilderOptions>(options: DefaultBuilderOptions()),
  6. PDfViewPageRenderer renderer = _render,
  7. Axis scrollDirection = Axis.horizontal,
  8. bool reverse = false,
  9. bool pageSnapping = true,
  10. ScrollPhysics? physics,
  11. BoxDecoration? backgroundDecoration = const BoxDecoration(),
  12. Key? key,
})

Implementation

const PdfView({
  required this.controller,
  this.onPageChanged,
  this.onDocumentLoaded,
  this.onDocumentError,
  this.builders = const PdfViewBuilders<DefaultBuilderOptions>(
    options: DefaultBuilderOptions(),
  ),
  this.renderer = _render,
  this.scrollDirection = Axis.horizontal,
  this.reverse = false,
  this.pageSnapping = true,
  this.physics,
  this.backgroundDecoration = const BoxDecoration(),
  Key? key,
}) : super(key: key);