onSnappedDocumentResult property

Future<void> Function(ImageRef originalImage, ImageRef? documentImage, DocumentDetectionResult? detectionResult)? onSnappedDocumentResult
final

A document scanner result callback that is triggered when a document is snapped. The callback provides the original image and, if detectDocumentAfterSnap is enabled, the cropped image of the detected document along with the document detection result.

Implementation

final Future<void> Function(
  ImageRef originalImage,
  ImageRef? documentImage,
  DocumentDetectionResult? detectionResult,
)? onSnappedDocumentResult;