decodeImage method

Future<ScanResult> decodeImage(
  1. Uint8List bytes
)

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);
  }
}