ReportViewer constructor
const
ReportViewer({
- Key? key,
- String? templateFile,
- String? templateAsset,
- ReportTemplate? template,
- required List data,
- ReportViewerOptions options = const ReportViewerOptions(),
- bool enablePagination = true,
- VoidCallback? onPageChanged,
- dynamic onCurrentPageChanged()?,
- DataRefreshCallback? onRefreshData,
Implementation
const ReportViewer({
super.key,
this.templateFile,
this.templateAsset,
this.template,
required this.data,
this.options = const ReportViewerOptions(),
this.enablePagination = true,
this.onPageChanged,
this.onCurrentPageChanged,
this.onRefreshData,
}) : assert(
templateFile != null || templateAsset != null || template != null,
'Provide templateFile, templateAsset or template',
);