toSvg static method

String toSvg({
  1. required String value,
  2. UBarcodeType type = UBarcodeType.qrCode,
  3. double width = 200,
  4. double height = 80,
  5. bool showValue = false,
  6. UErrorCorrectionLevel errorCorrectionLevel = UErrorCorrectionLevel.low,
  7. int? qrCodeVersion,
})

Implementation

static String toSvg({
  required String value,
  UBarcodeType type = UBarcodeType.qrCode,
  double width = 200,
  double height = 80,
  bool showValue = false,
  UErrorCorrectionLevel errorCorrectionLevel = UErrorCorrectionLevel.low,
  int? qrCodeVersion,
}) => _barcodeFor(type, qrVersion: qrCodeVersion, ecc: errorCorrectionLevel).toSvg(value, width: width, height: height, drawText: showValue);