createQRCode method

  1. @override
Future<Uint8List?> createQRCode(
  1. String data,
  2. int barcodeFormat,
  3. int errorCorrectionLevel,
  4. int widthAndHeight,
)
override

Implementation

@override
Future<Uint8List?> createQRCode(String data, int barcodeFormat,
    int errorCorrectionLevel, int widthAndHeight) async {
  var methodName = 'createQRCode';
  var params = {
    'data': data,
    "barcodeFormat": barcodeFormat,
    "errorCorrectionLevel": errorCorrectionLevel,
    "widthAndHeight": widthAndHeight
  };
  return await methodChannel.invokeMethod<Uint8List>(methodName, params);
}