printBarcode method
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;
}