decodeFile method
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;
}