drawer method
Open cash drawer
Implementation
List<int> drawer({PosDrawer pin = PosDrawer.pin2}) {
List<int> bytes = [];
if (pin == PosDrawer.pin2) {
bytes += cCashDrawerPin2.codeUnits;
} else {
bytes += cCashDrawerPin5.codeUnits;
}
return bytes;
}