SingleReportViewer constructor

const SingleReportViewer({
  1. Key? key,
  2. String? templateFile,
  3. String? templateAsset,
  4. ReportTemplate? template,
  5. required dynamic data,
  6. ReportViewerOptions options = const ReportViewerOptions(),
})

Implementation

const SingleReportViewer({
  super.key,
  this.templateFile,
  this.templateAsset,
  this.template,
  required this.data,
  this.options = const ReportViewerOptions(),
}) : assert(
       templateFile != null || templateAsset != null || template != null,
       'Provide templateFile, templateAsset or template',
     );