PrintCommand.qrCode constructor

PrintCommand.qrCode(
  1. String data, {
  2. double? x,
  3. double? y,
  4. String? size = "M",
  5. String? errorCorrection = "5",
  6. String? model = "M1",
  7. int? rotation = 0,
})

Implementation

factory PrintCommand.qrCode(
  String data, {
  double? x,
  double? y,
  String? size = "M",
  String? errorCorrection = "5",
  String? model = "M1",
  int? rotation = 0,
}) {
  return PrintCommand(
    text: '',
    isQRCode: true,
    barcodeData: data,
    x: x,
    y: y,
    rotation: rotation,
  );
}