ReportTemplate constructor

ReportTemplate({
  1. String name = 'Neue Vorlage',
  2. ReportPaperSize paperSize = ReportPaperSize.a4,
  3. ReportOrientation orientation = ReportOrientation.portrait,
  4. double headerHeight = 72,
  5. double footerHeight = 55,
  6. String locale = 'de-DE',
  7. String currency = 'EUR',
  8. List<ReportFont>? fonts,
  9. List<ReportElement>? elements,
  10. Map<String, dynamic>? variables,
})

Creates an empty or pre-populated report template.

Implementation

ReportTemplate({
  this.name = 'Neue Vorlage',
  this.paperSize = ReportPaperSize.a4,
  this.orientation = ReportOrientation.portrait,
  this.headerHeight = 72,
  this.footerHeight = 55,
  this.locale = 'de-DE',
  this.currency = 'EUR',
  List<ReportFont>? fonts,
  List<ReportElement>? elements,
  Map<String, dynamic>? variables,
}) : elements = elements ?? [],
     fonts = fonts ?? [],
     variables = variables ?? {};