QRCodeComponent constructor
QRCodeComponent({
- Key? key,
- required String qrData,
- double width = 200,
- double height = 200,
- Color color = Colors.black,
- Color backgroundColor = Colors.white,
- String? imageUrl,
- String? imageSrc,
- int errorCorrectionLevel = QrErrorCorrectLevel.L,
- int version = 4,
- dynamic onStartGenerate()?,
- dynamic onFinishGenerate()?,
Implementation
QRCodeComponent({
Key? key,
required this.qrData,
this.width = 200,
this.height = 200,
this.color = Colors.black,
this.backgroundColor = Colors.white,
this.imageUrl,
this.imageSrc,
this.errorCorrectionLevel = QrErrorCorrectLevel.L, // Default to Low error correction level
this.version = 4, // Default to version 4
this.onStartGenerate,
this.onFinishGenerate,
}) : super(key: key);