UBarcode constructor

const UBarcode({
  1. required String value,
  2. UBarcodeType type = UBarcodeType.qrCode,
  3. Color? barColor,
  4. Color? backgroundColor,
  5. List<Color>? gradientColors,
  6. AlignmentGeometry gradientBegin = Alignment.centerLeft,
  7. AlignmentGeometry gradientEnd = Alignment.centerRight,
  8. UBarcodeModuleShape moduleShape = UBarcodeModuleShape.square,
  9. double cornerRadiusRatio = 0.3,
  10. bool showValue = false,
  11. double textSpacing = 8,
  12. TextStyle? textStyle,
  13. double quietZone = 0,
  14. UErrorCorrectionLevel? errorCorrectionLevel,
  15. int? qrCodeVersion,
  16. int? module,
  17. bool? enableCheckSum,
  18. Uint8List? logoBytes,
  19. double logoSizeRatio = 0.2,
  20. double? width,
  21. double? height,
  22. 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,
});