DocumentScannerCamera constructor

const DocumentScannerCamera({
  1. Key? key,
  2. required DocumentCameraConfiguration configuration,
  3. dynamic onCameraPreviewStarted(
    1. bool isFlashAvailable
    )?,
  4. dynamic onHeavyOperationProcessing(
    1. bool
    )?,
  5. dynamic onFrameDetectionResult(
    1. DocumentDetectionResult detectionResult
    )?,
  6. Future<void> onSnappedDocumentResult(
    1. ImageRef originalImage,
    2. ImageRef? documentImage,
    3. DocumentDetectionResult? detectionResult
    )?,
  7. dynamic onError(
    1. SBException error
    )?,
  8. 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);