posPrintBarcode method

  1. @override
Future<void> posPrintBarcode(
  1. String content, {
  2. PBarcodeType type = PBarcodeType.code39,
  3. PStringEncoding encoding = PStringEncoding.utf8,
})
override

Sends a barcode to the POS printer.

Implementation

@override
Future<void> posPrintBarcode(
    String content, {
      PBarcodeType type = PBarcodeType.code39,
      PStringEncoding encoding = PStringEncoding.utf8,
    }) async {
  await _channel.invokeMethod('pos_printBarcode', {
    'content': content,
    'type': type.index,
    'encoding': encoding.index,
  });
}