decodeImageBuffer method

Future<List<Map>> decodeImageBuffer(
  1. Uint8List bytes,
  2. int width,
  3. int height,
  4. int stride,
  5. int format,
)

Decode barcodes from an image buffer.

Implementation

Future<List<Map<dynamic, dynamic>>> decodeImageBuffer(
    Uint8List bytes, int width, int height, int stride, int format) async {
  List<dynamic> barcodeResults = await handleThenable(
      _barcodeReader!.decodeBuffer(bytes, width, height, stride, format));

  return _resultWrapper(barcodeResults);
}