barCode method
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);
}