startScanner method
Future<bool?>
startScanner({
- bool turnOnFlash = false,
- bool turnOnBeep = false,
- bool turnOnVibration = false,
- ScannerMode scannerMode = ScannerMode.single,
- int delay = 500,
override
Implementation
@override
Future<bool?> startScanner({
bool turnOnFlash = false,
bool turnOnBeep = false,
bool turnOnVibration = false,
ScannerMode scannerMode = ScannerMode.single,
int delay = 500,
}) async {
try {
return await scanningMethodChannel.invokeMethod<bool>('startScanner', {
"turnOnFlash": turnOnFlash,
"turnOnBeep": turnOnBeep,
"turnOnVibration": turnOnVibration,
"scannerMode": scannerMode.value,
"delay": delay,
});
} catch (_) {
return null;
}
}