build method

ReportTemplate build({
  1. required String id,
  2. required String name,
  3. ReportType reportType = ReportType.label,
})

Implementation

ReportTemplate build({
  required String id,
  required String name,
  ReportType reportType = ReportType.label,
}) {
  return ReportTemplate(
    id: id,
    name: name,
    reportType: reportType,
    pageFormat: PageFormat.custom,
    pageWidth: widthMm,
    pageHeight: heightMm,
    marginTop: 0,
    marginBottom: 0,
    marginLeft: 0,
    marginRight: 0,
    itemsPerRow: 1,
    itemsPerColumn: 1,
    horizontalGap: 0,
    verticalGap: 0,
    itemWidth: widthMm,
    itemHeight: heightMm,
    elements: List.of(_elements),
  );
}