printBarcode method

  1. @override
Future<int?> printBarcode(
  1. String text,
  2. int width,
  3. int height
)
override

Prints a barcode with the provided parameters.

text The data to encode in the barcode. width The width of the barcode. height The height of the barcode.

Returns an int representing the result of the print operation, or null if it fails.

Implementation

@override
Future<int?> printBarcode(String text, int width, int height) async {
  final result = await methodChannel.invokeMethod<int?>('printBarcode', {
    "text": text,
    "width": width,
    "height": height,
  });
  return result;
}