ScanOptions constructor
const
ScanOptions({
- List<
BarcodeFormat> restrictFormat = const [], - int useCamera = -1,
- AndroidOptions android = const AndroidOptions(),
- bool autoEnableFlash = false,
- Map<
String, String> strings = const {"cancel" : "Cancel", "flash_on" : "Flash on", "flash_off" : "Flash off"},
Create a object which represents the scanner options
Implementation
const ScanOptions({
this.restrictFormat = const [],
this.useCamera = -1,
this.android = const AndroidOptions(),
this.autoEnableFlash = false,
this.strings = const {
"cancel": "Cancel",
"flash_on": "Flash on",
"flash_off": "Flash off",
},
}) : assert(restrictFormat != null),
assert(useCamera != null),
assert(useCamera >= -1),
assert(android != null);