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. PdfViewPinchBuilders builders = const PdfViewPinchBuilders<DefaultBuilderOptions>(options: DefaultBuilderOptions()),
  6. Axis scrollDirection = Axis.vertical,
  7. double padding = 10,
  8. BoxDecoration backgroundDecoration = const BoxDecoration(color: Color.fromARGB(255, 250, 250, 250), boxShadow: [BoxShadow(color: Color(0x73000000), blurRadius: 4, offset: Offset(2, 2))]),
  9. Key? key,
})

Implementation

const PdfViewPinch({
  required this.controller,
  this.onPageChanged,
  this.onDocumentLoaded,
  this.onDocumentError,
  this.builders = const PdfViewPinchBuilders<DefaultBuilderOptions>(
    options: DefaultBuilderOptions(),
  ),
  this.scrollDirection = Axis.vertical,
  this.padding = 10,
  this.backgroundDecoration = const BoxDecoration(
    color: Color.fromARGB(255, 250, 250, 250),
    boxShadow: [
      BoxShadow(
        color: Color(0x73000000),
        blurRadius: 4,
        offset: Offset(2, 2),
      ),
    ],
  ),
  Key? key,
}) : super(key: key);