printBarCode method

  1. @override
Future<void> printBarCode(
  1. String code,
  2. BarCodeType type,
  3. int width,
  4. int height,
  5. int hriPos,
)
override

Implementation

@override
Future<void> printBarCode(
    String code, BarCodeType type, int width, int height, int hriPos) async {
  await methodChannel.invokeMethod<void>('printBarCode', <String, dynamic>{
    'code': code,
    'type': type.index, // Convert to int
    'width': width,
    'height': height,
    'hriPos': hriPos,
  });
}