BarcodeView constructor

const BarcodeView(
  1. String data, {
  2. Key? key,
  3. BarcodeWriter writer = const BarcodeWriter(BarcodeFormat.qrCode),
  4. BarcodeStyle style = BarcodeStyle.classic,
  5. double? width,
  6. double? height,
  7. String? semanticLabel,
  8. Widget errorBuilder(
    1. BuildContext context,
    2. 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;