stopScan static method
Stop scanning
Stops the soft scan trigger on the Zebra device.
Returns true if scanning stopped successfully
Implementation
static Future<bool> stopScan() async {
if (!_isInitialized) {
throw Exception('Scanner not initialized. Call initialize() first.');
}
try {
await _channel.invokeMethod('stopScanning');
_updateStatus(ScannerStatus.ready);
return true;
} on PlatformException catch (e) {
_updateStatus(ScannerStatus.error);
throw Exception('Failed to stop scanning: ${e.message}');
}
}