CodeScannerView constructor
const
CodeScannerView({
- Key? key,
- void onDetect(
- ScanResult result
- CodeScannerController? controller,
- List<
String> ? formats, - BoxFit fit = BoxFit.cover,
- bool showOverlay = true,
- Widget? overlay,
- ScanMode scanMode = ScanMode.single,
- DuplicateFilter duplicateFilter = DuplicateFilter.cooldown,
- Duration duplicateCooldown = const Duration(seconds: 2),
Implementation
const CodeScannerView({
super.key,
this.onDetect,
this.controller,
this.formats,
this.fit = BoxFit.cover,
this.showOverlay = true,
this.overlay,
this.scanMode = ScanMode.single,
this.duplicateFilter = DuplicateFilter.cooldown,
this.duplicateCooldown = const Duration(seconds: 2),
});