qrcode method
List<int>
qrcode(
- String text, {
- PosAlign align = PosAlign.center,
- QRSize size = QRSize.size4,
- 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;
}