BarcodeCamera constructor

const BarcodeCamera({
  1. Key? key,
  2. required List<BarcodeType> types,
  3. DetectionMode mode = DetectionMode.pauseVideo,
  4. Resolution resolution = Resolution.hd720,
  5. Framerate framerate = Framerate.fps30,
  6. CameraPosition position = CameraPosition.back,
  7. void onScan(
    1. Barcode
    )?,
  8. List<Widget> children = const [],
  9. ErrorCallback? onError,
})

Implementation

const BarcodeCamera({
  Key? key,
  required this.types,
  this.mode = DetectionMode.pauseVideo,
  this.resolution = Resolution.hd720,
  this.framerate = Framerate.fps30,
  this.position = CameraPosition.back,
  this.onScan,
  this.children = const [],
  ErrorCallback? onError,
})  : onError = onError ?? _defaultOnError,
      super(key: key);