drawer method

List<int> drawer({
  1. PosDrawer pin = PosDrawer.pin2,
})

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;
}