processImageFile method

Future<ScanResult> processImageFile(
  1. String imagePath, {
  2. ScanMode? mode,
})

Processes an image file from a local path.

Implementation

Future<ScanResult> processImageFile(
  String imagePath, {
  ScanMode? mode,
}) async {
  final targetMode = mode ?? _selectedMode;
  final result = await _scanEngine.processImageFile(imagePath, targetMode);
  _emitScanDataEvent(result);
  return result;
}