decodeImage method
Implementation
Future<ScanResult> decodeImage(Uint8List bytes) async {
var result = await _api.decodeBitmap(bytes, options);
if (result.isEmpty) {
return ScanResult.empty();
} else {
return result.containsKey('zoomValue')
? ScanResult.empty()
: ScanResult.from(result);
}
}