printBarcodeWithText method

  1. @override
Future<bool> printBarcodeWithText(
  1. String barcodeData,
  2. String textData, {
  3. double? x,
  4. double? y,
  5. int? barcodeHeight,
  6. int? textFont,
  7. double? textScale,
})
override

Print barcode with text below it in one operation

Implementation

@override
Future<bool> printBarcodeWithText(
  String barcodeData,
  String textData, {
  double? x,
  double? y,
  int? barcodeHeight,
  int? textFont,
  double? textScale,
}) async {
  final result = await methodChannel.invokeMethod<bool>('printBarcodeWithText', {
    'barcodeData': barcodeData,
    'textData': textData,
    'x': x,
    'y': y,
    'barcodeHeight': barcodeHeight,
    'textFont': textFont,
    'textScale': textScale,
  });
  return result ?? false;
}