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