printerCatalogSettings function

PrinterCatalogSettings printerCatalogSettings(
  1. PrinterCatalogEntry entry
)

Was ein Eintrag beim Einrichten vorschlaegt; drawerKick wird zu drawerEnabled. Zwilling von printerCatalogSettings.

Implementation

PrinterCatalogSettings printerCatalogSettings(PrinterCatalogEntry entry) {
  final v = entry.values;
  return PrinterCatalogSettings(
    device: PrinterCatalogDeviceSettings(
      paperSize: v.paperSize,
      codePage: v.codePage,
      cut: v.cut,
      qrMode: v.qrMode,
      drawerEnabled: v.drawerKick,
    ),
    paperSizeNeedsCheck: entry.paperSizes.any((p) => p != v.paperSize),
  );
}