qrcode method

List<int> qrcode(
  1. String text, {
  2. PosAlign align = PosAlign.center,
  3. QRSize size = QRSize.size4,
  4. QRCorrection cor = QRCorrection.L,
})

Print a QR Code

Implementation

List<int> qrcode(
  String text, {
  PosAlign align = PosAlign.center,
  QRSize size = QRSize.size4,
  QRCorrection cor = QRCorrection.L,
}) {
  List<int> bytes = [];
  // Set alignment
  bytes += setStyles(PosStyles().copyWith(align: align));
  QRCode qr = QRCode(text, size, cor);
  bytes += qr.bytes;
  return bytes;
}