BarcodeView constructor

const BarcodeView({
  1. Key? key,
  2. List<BarcodeFormat> formats = const [],
  3. CameraFacing cameraFacing = CameraFacing.back,
  4. bool cameraEnabled = true,
  5. bool flashEnabled = false,
  6. bool scanEnabled = true,
  7. required void onBarcode(
    1. Barcode barcode
    ),
})

Implementation

const BarcodeView({
  Key? key,
  this.formats = const [],
  this.cameraFacing = CameraFacing.back,
  this.cameraEnabled = true,
  this.flashEnabled = false,
  this.scanEnabled = true,
  required this.onBarcode,
}) : super(key: key);