NiceDocumentViewer constructor

const NiceDocumentViewer({
  1. Key? key,
  2. required String src,
  3. NiceDocumentType type = NiceDocumentType.unsupported,
  4. double initialZoom = 1.0,
  5. double minZoom = 0.25,
  6. double maxZoom = 4.0,
  7. bool showToolbar = true,
  8. bool showZoomControls = true,
  9. bool showFullscreen = true,
  10. bool showDownload = false,
  11. String? title,
  12. VoidCallback? onDownload,
  13. String? textContent,
  14. ImageProvider<Object>? imageProvider,
})

Implementation

const NiceDocumentViewer({
  super.key,
  required this.src,
  this.type = NiceDocumentType.unsupported,
  this.initialZoom = 1.0,
  this.minZoom = 0.25,
  this.maxZoom = 4.0,
  this.showToolbar = true,
  this.showZoomControls = true,
  this.showFullscreen = true,
  this.showDownload = false,
  this.title,
  this.onDownload,
  this.textContent,
  this.imageProvider,
});