describe method

String describe(
  1. ReportLocalizations l10n
)

Description built from the measures, e.g. "A4 sheet · 24 labels 70×37 mm".

Implementation

String describe(ReportLocalizations l10n) {
  final cell = '${formatMm(cellWidthMm)}×${formatMm(cellHeightMm)}';
  if (feed == PaperFeed.roll) return l10n.printPaperRoll(cell);
  final page = '${formatMm(pageWidthMm)}×${formatMm(pageHeightMm)}';
  return l10n.printPaperSheetDescription(page, cellsPerPage, cell);
}