BarcodeCamera constructor
const
BarcodeCamera({
- Key? key,
- required List<
BarcodeType> types, - DetectionMode mode = DetectionMode.pauseVideo,
- Resolution resolution = Resolution.hd720,
- Framerate framerate = Framerate.fps30,
- CameraPosition position = CameraPosition.back,
- void onScan()?,
- List<
Widget> children = const [], - 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);