ExceptionReportTemplate constructor

ExceptionReportTemplate({
  1. TextDirection direction = TextDirection.ltr,
  2. TemplateTheme? theme,
  3. SfntFont? font,
  4. SfntFont? fontBold,
  5. required TemplateParty from,
  6. TemplateParty? to,
  7. SheetLabels? labels,
  8. String number = '',
  9. String date = '',
  10. String extra = '',
  11. String subject = '',
  12. String recipient = '',
  13. List<SheetRow> rows = const <SheetRow>[],
  14. List<String> paragraphs = const <String>[],
  15. List<TemplateSection> sections = const <TemplateSection>[],
  16. List<(String, String)> metrics = const <(String, String)>[],
  17. List<ChartPoint>? chart,
  18. String chartTitle = '',
  19. MoneyTotals? totals,
  20. String? notes,
  21. String footer = '',
  22. List<SignSlot> signs = const <SignSlot>[],
})

ExceptionReportTemplate API.

Implementation

ExceptionReportTemplate({
  this.direction = TextDirection.ltr,
  TemplateTheme? theme,
  this.font,
  this.fontBold,
  required this.from,
  this.to,
  SheetLabels? labels,
  this.number = '',
  this.date = '',
  this.extra = '',
  this.subject = '',
  this.recipient = '',
  this.rows = const <SheetRow>[],
  this.paragraphs = const <String>[],
  this.sections = const <TemplateSection>[],
  this.metrics = const <(String, String)>[],
  this.chart,
  this.chartTitle = '',
  this.totals,
  this.notes,
  this.footer = '',
  this.signs = const <SignSlot>[],
})  : theme = theme ?? TemplateThemes.data,
      labels = labels ?? exceptionReportTemplateLabels,
      _sheet = SheetTemplate(
        kind: SheetKind.listing,
        direction: direction,
        theme: theme ?? TemplateThemes.data,
        font: font,
        fontBold: fontBold,
        owner: from,
        other: to,
        labels: labels ?? exceptionReportTemplateLabels,
        number: number,
        date: date,
        extra: extra,
        subject: subject,
        recipient: recipient,
        rows: rows,
        paragraphs: paragraphs,
        sections: sections,
        metrics: metrics,
        chart: chart,
        chartTitle: chartTitle,
        totals: totals,
        notes: notes,
        footer: footer,
        signs: signs,
        landscape: false,
        skin: SheetSkin.catalog,
      );