printBarCode method

  1. @override
Future<String?> printBarCode({
  1. required int width,
  2. required int height,
  3. required String text,
  4. required int align,
  5. required int type,
  6. required int position,
})
override

Implementation

@override
Future<String?> printBarCode(
    {required int width,
    required int height,
    required String text,
    required int align,
    required int type,
    required int position}) async {
  return await methodChannel.invokeMethod('PRINT_BARCODE', {
    'width': width,
    'height': height,
    'text': text,
    'align': align,
    'barcode_type': type,
    'barcode_text_position': position
  });
}