decodeFile method

Future<Result?> decodeFile(
  1. XFile file, {
  2. bool scanInverted = false,
})

Implementation

Future<Result?> decodeFile(
  XFile file, {
  bool scanInverted = false,
}) async {
  Result? decoded = await _isolateDecoder.decodeFileImage(file);

  if (scanInverted && decoded == null) {
    decoded = await _isolateDecoder.decodeFileImage(file, insverted: true);
  }

  return decoded;
}