barCode method

Future<void> barCode({
  1. required String content,
  2. int x = 0,
  3. int y = 0,
  4. int width = 4,
  5. int height = 100,
  6. bool vertical = false,
  7. BarCodeType codeType = BarCodeType.c_128,
})

Implementation

Future<void> barCode({
  required String content,
  int x = 0,
  int y = 0,
  int width = 4,
  int height = 100,
  bool vertical = false,
  BarCodeType codeType = BarCodeType.c_128,
}) async {
  Map<String, dynamic> params = {
    "content": content,
    "x": x,
    "y": y,
    "width": width,
    "height": height,
    "vertical": vertical,
    "codeType": EnumTool.getCodeType(codeType),
  };
  await methodChannel.invokeMethod<void>('barCode', params);
}