PdfViewPinch constructor

const PdfViewPinch({
  1. required PdfControllerPinch controller,
  2. void onPageChanged(
    1. int page
    )?,
  3. void onDocumentLoaded(
    1. PdfDocument document
    )?,
  4. void onDocumentError(
    1. Object error
    )?,
  5. Widget? documentLoader,
  6. Widget? pageLoader,
  7. Widget errorBuilder(
    1. Exception error
    )?,
  8. Axis scrollDirection = Axis.vertical,
  9. bool pageSnapping = true,
  10. double padding = 10,
  11. ScrollPhysics? physics,
  12. BoxDecoration? backgroundDecoration = const BoxDecoration(),
  13. Duration loaderSwitchDuration = const Duration(seconds: 1),
  14. Key? key,
})

Implementation

const PdfViewPinch({
  required this.controller,
  this.onPageChanged,
  this.onDocumentLoaded,
  this.onDocumentError,
  this.documentLoader,
  this.pageLoader,
  this.errorBuilder,
  this.scrollDirection = Axis.vertical,
  this.pageSnapping = true,
  this.padding = 10,
  this.physics,
  this.backgroundDecoration = const BoxDecoration(),
  this.loaderSwitchDuration = const Duration(seconds: 1),
  Key? key,
}) : super(key: key);