NicePdfViewer constructor
const
NicePdfViewer({
- Key? key,
- String? filePath,
- String? url,
- Uint8List? data,
- int initialPage = 0,
- ValueChanged<
int> ? onPageChanged, - bool showToolbar = true,
- bool showThumbnails = false,
- bool enableSearch = true,
- NicePdfViewMode viewMode = NicePdfViewMode.single,
- Widget pageBuilder(
- int page
- VoidCallback? onDocumentLoaded,
- void onDocumentError(
- 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,
});