openCashDrawer static method

Future openCashDrawer()

Implementation

static Future openCashDrawer() async {
  if (_networkPrinter == null) {
    throw Exception('Printer not initialized');
  }
  await _networkPrinter!.printTicket(Generator(paperSize.paperSize, await CapabilityProfile.load()).drawer());
}