PdfView constructor
const
PdfView({
- required PdfController controller,
- void onPageChanged(
- int page
- void onDocumentLoaded(
- PdfDocument document
- void onDocumentError(
- Object error
- PdfViewBuilders builders = const PdfViewBuilders<DefaultBuilderOptions>(options: DefaultBuilderOptions()),
- PDfViewPageRenderer renderer = _render,
- Axis scrollDirection = Axis.horizontal,
- bool reverse = false,
- bool pageSnapping = true,
- ScrollPhysics? physics,
- BoxDecoration? backgroundDecoration = const BoxDecoration(),
- 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);