part of 'zxing.dart'; // Reads barcodes from Uint8List image bytes List readBarcodes(Uint8List bytes, int format, int width, int height, int cropWidth, int cropHeight) { final CodeResults result = bindings.readBarcodes( bytes.allocatePointer(), format, width, height, cropWidth, cropHeight); final List results = []; for (int i = 0; i < result.count; i++) { results.add(result.results.elementAt(i).ref); } return results; }