ReportViewer constructor

const ReportViewer({
  1. Key? key,
  2. String? templateFile,
  3. String? templateAsset,
  4. ReportTemplate? template,
  5. required List data,
  6. ReportViewerOptions options = const ReportViewerOptions(),
  7. bool enablePagination = true,
  8. VoidCallback? onPageChanged,
  9. dynamic onCurrentPageChanged(
    1. int
    )?,
  10. 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',
     );