addQrcode method Null safety
添加二维码
x 起点X坐标
y 起点Y坐标
text 内容
errorLevel 纠错级别
cellWidth 单元宽度
rotation 旋转角度
Implementation
void addQrcode(
{required int x,
required int y,
required String text,
String errorLevel = qrcodeErrorLevelM,
int cellWidth = 4,
int rotation = 0}) {
addString("QRCODE $x,$y,$errorLevel,$cellWidth,A,$rotation,\"$text\"\r\n");
}