PosDeviceSettings constructor

const PosDeviceSettings({
  1. PosLayout layout = PosLayout.right,
  2. PosCategoryPosition categoryPosition = PosCategoryPosition.top,
  3. int extraColumns = 0,
  4. PosTileHeight tileHeight = PosTileHeight.m,
  5. bool touch = false,
  6. Map<String, List<String>> shortcuts = posShortcutDefaults,
  7. bool printerEnabled = false,
  8. PosPrinterType printerType = PosPrinterType.sdp,
  9. String printerIp = '',
  10. int printerPort = 9100,
  11. String printerBluetoothId = '',
  12. String printerName = '',
  13. String printerId = '',
  14. String printerDeviceId = 'local_printer',
  15. String connectPrinterId = '',
  16. PosPaperSize paperSize = PosPaperSize.mm80,
  17. PosCodePage codePage = PosCodePage.cp1252,
  18. PosCut cut = PosCut.partial,
  19. PosQrMode qrMode = PosQrMode.auto,
  20. bool drawerEnabled = false,
  21. PosDrawerAutoOpen drawerAutoOpen = PosDrawerAutoOpen.cash,
  22. String terminalIp = '',
  23. int terminalPort = 8080,
  24. String terminalTid = '',
  25. PosTerminalVia terminalVia = PosTerminalVia.direct,
  26. PosTerminalType terminalType = PosTerminalType.none,
  27. bool shortcutHints = true,
  28. Map<String, Object> unknownValues = const {},
})

Implementation

const PosDeviceSettings({
  this.layout = PosLayout.right,
  this.categoryPosition = PosCategoryPosition.top,
  this.extraColumns = 0,
  this.tileHeight = PosTileHeight.m,
  this.touch = false,
  this.shortcuts = posShortcutDefaults,
  this.printerEnabled = false,
  this.printerType = PosPrinterType.sdp,
  this.printerIp = '',
  this.printerPort = 9100,
  this.printerBluetoothId = '',
  this.printerName = '',
  this.printerId = '',
  this.printerDeviceId = 'local_printer',
  this.connectPrinterId = '',
  this.paperSize = PosPaperSize.mm80,
  this.codePage = PosCodePage.cp1252,
  this.cut = PosCut.partial,
  this.qrMode = PosQrMode.auto,
  this.drawerEnabled = false,
  this.drawerAutoOpen = PosDrawerAutoOpen.cash,
  this.terminalIp = '',
  this.terminalPort = 8080,
  this.terminalTid = '',
  this.terminalVia = PosTerminalVia.direct,
  this.terminalType = PosTerminalType.none,
  this.shortcutHints = true,
  this.unknownValues = const {},
});