drawBarcode method

  1. @override
Future<void> drawBarcode(
  1. int x,
  2. int y,
  3. XprinterBarCodeType type,
  4. int height,
  5. String data, {
  6. bool vertical = false,
  7. int? width,
  8. XprinterBarcodeRatio? ratio,
})
override

Implementation

@override
Future<void> drawBarcode(int x, int y, XprinterBarCodeType type, int height, String data, {bool vertical = false, int? width, XprinterBarcodeRatio? ratio}) {
  return methodChannel.invokeMethod<void>('drawBarcode', {'x': x, 'y': y, 'type': type.value, 'height': height, 'data': data, 'vertical': vertical, 'width': width, 'ratio': ratio?.value});
}