UBarcode constructor
const
UBarcode({
- required String value,
- UBarcodeType type = UBarcodeType.qrCode,
- Color? barColor,
- Color? backgroundColor,
- List<
Color> ? gradientColors, - AlignmentGeometry gradientBegin = Alignment.centerLeft,
- AlignmentGeometry gradientEnd = Alignment.centerRight,
- UBarcodeModuleShape moduleShape = UBarcodeModuleShape.square,
- double cornerRadiusRatio = 0.3,
- bool showValue = false,
- double textSpacing = 8,
- TextStyle? textStyle,
- double quietZone = 0,
- UErrorCorrectionLevel? errorCorrectionLevel,
- int? qrCodeVersion,
- int? module,
- bool? enableCheckSum,
- Uint8List? logoBytes,
- double logoSizeRatio = 0.2,
- double? width,
- double? height,
- Key? key,
Implementation
const UBarcode({
required this.value,
this.type = UBarcodeType.qrCode,
this.barColor,
this.backgroundColor,
this.gradientColors,
this.gradientBegin = Alignment.centerLeft,
this.gradientEnd = Alignment.centerRight,
this.moduleShape = UBarcodeModuleShape.square,
this.cornerRadiusRatio = 0.3,
this.showValue = false,
this.textSpacing = 8,
this.textStyle,
this.quietZone = 0,
this.errorCorrectionLevel,
this.qrCodeVersion,
this.module,
this.enableCheckSum,
this.logoBytes,
this.logoSizeRatio = 0.2,
this.width,
this.height,
super.key,
});