NicePdfViewer constructor

const NicePdfViewer({
  1. Key? key,
  2. String? filePath,
  3. String? url,
  4. Uint8List? data,
  5. int initialPage = 0,
  6. ValueChanged<int>? onPageChanged,
  7. bool showToolbar = true,
  8. bool showThumbnails = false,
  9. bool enableSearch = true,
  10. NicePdfViewMode viewMode = NicePdfViewMode.single,
  11. Widget pageBuilder(
    1. int page
    )?,
  12. VoidCallback? onDocumentLoaded,
  13. void onDocumentError(
    1. String error
    )?,
})

Implementation

const NicePdfViewer({
  super.key,
  this.filePath,
  this.url,
  this.data,
  this.initialPage = 0,
  this.onPageChanged,
  this.showToolbar = true,
  this.showThumbnails = false,
  this.enableSearch = true,
  this.viewMode = NicePdfViewMode.single,
  this.pageBuilder,
  this.onDocumentLoaded,
  this.onDocumentError,
});