tsplPrintQRCode method
Future<void>
tsplPrintQRCode(
- String code, {
- int x = 0,
- int y = 0,
- ErrLevel errLevel = ErrLevel.L,
- QRCodeMode mode = QRCodeMode.M,
- int rotate = 0,
override
Sends a QR code to the TSPL printer with positioning and rotation.
Implementation
@override
Future<void> tsplPrintQRCode(
String code, {
int x = 0,
int y = 0,
ErrLevel errLevel = ErrLevel.L,
QRCodeMode mode = QRCodeMode.M,
int rotate = 0,
}) async {
await _channel.invokeMethod('tspl_printQRCode', {
'code': code,
'x': x,
'y': y,
'eccLevel': errLevel.index,
'mode': mode.index,
'rotation': rotateLevels[QRCodeRotate.values[rotate]] ?? 0,
});
}