NiceDocumentViewer constructor
const
NiceDocumentViewer({ - Key? key,
- required String src,
- NiceDocumentType type = NiceDocumentType.unsupported,
- double initialZoom = 1.0,
- double minZoom = 0.25,
- double maxZoom = 4.0,
- bool showToolbar = true,
- bool showZoomControls = true,
- bool showFullscreen = true,
- bool showDownload = false,
- String? title,
- VoidCallback? onDownload,
- String? textContent,
- 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,
});