BarcodeView constructor
const
BarcodeView(
- String data, {
- Key? key,
- BarcodeWriter writer = const BarcodeWriter(BarcodeFormat.qrCode),
- BarcodeStyle style = BarcodeStyle.classic,
- double? width,
- double? height,
- String? semanticLabel,
- Widget errorBuilder(
- BuildContext context,
- BarcodeWriteException error
Creates a barcode view for the text data, encoded with writer (a
QR code by default).
Implementation
const BarcodeView(
String this.data, {
super.key,
BarcodeWriter this.writer = const BarcodeWriter(BarcodeFormat.qrCode),
this.style = BarcodeStyle.classic,
this.width,
this.height,
this.semanticLabel,
this.errorBuilder,
}) : bytes = null,
symbol = null;