printQrCode method
Implementation
@override
Future<Map<String, dynamic>> printQrCode(
String data, {
int size = 200,
String errorCorrectionLevel = "L", // "L", "M", "Q", "H"
}) async {
try {
final Map<String, dynamic> result = Map<String, dynamic>.from(
await channel.invokeMethod('printQRCode', {
'data': data,
'size': size,
'errorCorrectionLevel': errorCorrectionLevel,
})
);
return result;
} on PlatformException catch (e) {
throw SmartPosException('Failed to print QR code: ${e.message}');
}
}