printBarcode method
Future<void>
printBarcode(
- String content, {
- PBarcodeType type = PBarcodeType.eab13,
- PStringEncoding encoding = PStringEncoding.utf8,
override
Prints a barcode with the specified content.
Parameters:
content
The content to encode in the barcode.type
Type of the barcode (default is PBarcodeType.ean13).encoding
String encoding used (default is PStringEncoding.utf8).
Implementation
@override
Future<void> printBarcode(
String content, {
PBarcodeType type = PBarcodeType.eab13,
PStringEncoding encoding = PStringEncoding.utf8,
}) {
final args = {
'content': content,
'type': type.index,
'encoding': encoding.index,
};
return methodChannel.invokeMethod<void>('printBarcode', args);
}