paperFormatOf method
The paper format of template. When it was deleted, a single page as
big as the design is used, so the template still prints.
Implementation
PaperFormat paperFormatOf(PrintTemplate template, {String? overrideId}) {
final wanted = overrideId ?? template.paperFormatId;
for (final format in _paperFormats) {
if (format.id == wanted) return format;
}
return PaperFormat.single(
widthMm: template.design.itemWidth,
heightMm: template.design.itemHeight,
);
}