addQrcode method Null safety

void addQrcode(
  1. {required int x,
  2. required int y,
  3. required String text,
  4. String errorLevel = qrcodeErrorLevelM,
  5. int cellWidth = 4,
  6. int rotation = 0}
)

添加二维码

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");
}