DocumentScannerCamera constructor
const
DocumentScannerCamera({ - Key? key,
- required DocumentCameraConfiguration configuration,
- dynamic onCameraPreviewStarted(
- bool isFlashAvailable
)?,
- dynamic onHeavyOperationProcessing(
- bool
)?,
- dynamic onFrameDetectionResult(
- DocumentDetectionResult detectionResult
)?,
- Future<void> onSnappedDocumentResult(
- ImageRef originalImage,
- ImageRef? documentImage,
- DocumentDetectionResult? detectionResult
)?,
- dynamic onError(
- SBException error
)?,
- DocumentScannerCameraController? controller,
})
Implementation
const DocumentScannerCamera({
Key? key,
required this.configuration,
this.onCameraPreviewStarted,
this.onHeavyOperationProcessing,
this.onFrameDetectionResult,
this.onSnappedDocumentResult,
this.onError,
this.controller,
}) : super(key: key);