ProformaTemplate constructor
ProformaTemplate({
- TextDirection direction = TextDirection.ltr,
- TemplateTheme? theme,
- SfntFont? font,
- SfntFont? fontBold,
- required TemplateParty from,
- TemplateParty? to,
- SheetLabels? labels,
- String number = '',
- String date = '',
- String extra = '',
- String subject = '',
- String recipient = '',
- List<
SheetRow> rows = const <SheetRow>[], - List<
String> paragraphs = const <String>[], - List<
TemplateSection> sections = const <TemplateSection>[], - List<
(String, String)> metrics = const <(String, String)>[], - List<
ChartPoint> ? chart, - String chartTitle = '',
- MoneyTotals? totals,
- String? notes,
- List<
SignSlot> signs = const <SignSlot>[],
ProformaTemplate API.
Implementation
ProformaTemplate({
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.commerce,
labels = labels ?? proformaTemplateLabels,
_sheet = SheetTemplate(
kind: SheetKind.trade,
direction: direction,
theme: theme ?? TemplateThemes.commerce,
font: font,
fontBold: fontBold,
owner: from,
other: to,
labels: labels ?? proformaTemplateLabels,
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.quote,
);