toSvg static method
String
toSvg({
- required String value,
- UBarcodeType type = UBarcodeType.qrCode,
- double width = 200,
- double height = 80,
- bool showValue = false,
- UErrorCorrectionLevel errorCorrectionLevel = UErrorCorrectionLevel.low,
- 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);