CameraSource constructor

const CameraSource({
  1. Key? key,
  2. required void onDetect(
    1. Barcode
    ),
  3. bool stopOnFound = false,
  4. ResolutionPreset resolution = ResolutionPreset.high,
  5. bool immersive = true,
})

Implementation

const CameraSource({
  Key? key,
  required this.onDetect,
  this.stopOnFound = false,
  this.resolution = ResolutionPreset.high,
  this.immersive = true,
}) : super(key: key);