scanImageBytes method

dynamic scanImageBytes(
  1. Uint8List bytes
)

Scan an encoded image in any format supported by the dart image library to update QR code and location

Implementation

scanImageBytes(Uint8List bytes) {
  final image = decodeImage(bytes);
  scanImage(image);
  if (location == null && couldBeQRCodeBMPWithHiddenTransparency(bytes)) {
    scanImage(fixQRCodeBMPWithHiddenTransparency(bytes));
  }
}