BarcodeView constructor
const
BarcodeView({
- Key? key,
- List<
BarcodeFormat> formats = const [], - CameraFacing cameraFacing = CameraFacing.back,
- bool cameraEnabled = true,
- bool flashEnabled = false,
- bool scanEnabled = true,
- required void onBarcode(
- 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);